1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 05:02:02 +02:00

Check bootstrap3 is the admin theme and update.

This commit is contained in:
Cameron 2015-07-22 14:11:32 -07:00
parent d5a891106a
commit 912a0e6bf1

View File

@ -630,6 +630,16 @@ function update_706_to_800($type='')
$log->logMessage(LAN_UPDATE_20.'customtitle', E_MESSAGE_SUCCESS);
$do_save = TRUE;
}
if($pref['admintheme'] == 'bootstrap')//TODO Force an admin theme update or not?
{
if ($just_check) return update_needed('pref: Admin theme upgrade to bootstrap3 ');
$pref['admintheme'] = 'bootstrap3';
$pref['admincss'] = 'admin_dark.css';
$do_save = true;
}
// convert all serialized core prefs to e107 ArrayStorage;
$serialz_qry = "SUBSTRING( e107_value,1,5)!='array' AND e107_value !='' ";
@ -1645,7 +1655,8 @@ function update_706_to_800($type='')
if ($do_save)
{
save_prefs();
// save_prefs();
e107::getConfig()->setPref($pref)->save(false,true,true);
$log->logMessage(LAN_UPDATE_50);
// $log->logMessage(implode(', ', $accum), E_MESSAGE_NODISPLAY);