mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 15:38:27 +01:00
force new Pixelegg template on update
This commit is contained in:
parent
cab2ccdd29
commit
9e67848243
@ -783,7 +783,7 @@ class preferences
|
|||||||
$cached = egw_cache::getInstance(__CLASS__, $row['preference_owner']);
|
$cached = egw_cache::getInstance(__CLASS__, $row['preference_owner']);
|
||||||
if($cached && $cached[$row['preference_app']])
|
if($cached && $cached[$row['preference_app']])
|
||||||
{
|
{
|
||||||
$cached[$row['preference_app']] = $value;
|
$cached[$row['preference_app']] = $prefs;
|
||||||
egw_cache::setInstance(__CLASS__, $row['preference_owner'], $cached);
|
egw_cache::setInstance(__CLASS__, $row['preference_owner'], $cached);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -557,5 +557,13 @@ function phpgwapi_upgrade1_9_021()
|
|||||||
'comment' => 'tab customfield should be shown'
|
'comment' => 'tab customfield should be shown'
|
||||||
));
|
));
|
||||||
|
|
||||||
|
// force new Pixelegg template on update
|
||||||
|
if (file_exists(EGW_SERVER_ROOT.'/pixelegg'))
|
||||||
|
{
|
||||||
|
preferences::change_preference('common', 'template_set', 'pixelegg', null, 'forced');
|
||||||
|
preferences::change_preference('common', 'theme', 'pixelegg', null, 'forced');
|
||||||
|
}
|
||||||
|
preferences::change_preference('common', 'maxmatchs', '20', null, 'forced');
|
||||||
|
|
||||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.1';
|
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.1';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user