mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 01:48:01 +02:00
silently upgrade old calendar favorites
This commit is contained in:
parent
c004872068
commit
01adf460f3
@ -984,7 +984,7 @@ abstract class egw_framework
|
|||||||
public function _get_css()
|
public function _get_css()
|
||||||
{
|
{
|
||||||
$app_css = '';
|
$app_css = '';
|
||||||
|
|
||||||
// Load these first
|
// Load these first
|
||||||
// Cascade should go:
|
// Cascade should go:
|
||||||
// Libs < etemplate2 < framework/theme < app < print (?)
|
// Libs < etemplate2 < framework/theme < app < print (?)
|
||||||
@ -1802,11 +1802,14 @@ $LAB.setOptions({AlwaysPreserveOrder:true,BasePath:"'.$GLOBALS['egw_info']['serv
|
|||||||
{
|
{
|
||||||
if(strpos($pref_name, $pref_prefix) === 0)
|
if(strpos($pref_name, $pref_prefix) === 0)
|
||||||
{
|
{
|
||||||
if(!is_array($pref))
|
if(!is_array($pref)) // old favorite
|
||||||
{
|
{
|
||||||
$GLOBALS['egw']->preferences->delete($app,$pref_name);
|
if (!($pref = unserialize($pref))) continue;
|
||||||
$GLOBALS['egw']->preferences->save_repository(false);
|
$pref = array(
|
||||||
continue;
|
'name' => substr($pref_name,strlen($pref_prefix)),
|
||||||
|
'group' => !isset($GLOBALS['egw']->preferences->user[$app][$pref_name]),
|
||||||
|
'state' => $pref,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
$filters[substr($pref_name,strlen($pref_prefix))] = $pref;
|
$filters[substr($pref_name,strlen($pref_prefix))] = $pref;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user