force new Pixelegg template on update

This commit is contained in:
Ralf Becker 2014-06-25 16:46:36 +00:00
parent cab2ccdd29
commit 9e67848243
2 changed files with 9 additions and 1 deletions

View File

@ -783,7 +783,7 @@ class preferences
$cached = egw_cache::getInstance(__CLASS__, $row['preference_owner']);
if($cached && $cached[$row['preference_app']])
{
$cached[$row['preference_app']] = $value;
$cached[$row['preference_app']] = $prefs;
egw_cache::setInstance(__CLASS__, $row['preference_owner'], $cached);
}
}

View File

@ -557,5 +557,13 @@ function phpgwapi_upgrade1_9_021()
'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';
}