mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
Check bootstrap3 is the admin theme and update.
This commit is contained in:
@@ -631,6 +631,16 @@ function update_706_to_800($type='')
|
|||||||
$do_save = TRUE;
|
$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;
|
// convert all serialized core prefs to e107 ArrayStorage;
|
||||||
$serialz_qry = "SUBSTRING( e107_value,1,5)!='array' AND e107_value !='' ";
|
$serialz_qry = "SUBSTRING( e107_value,1,5)!='array' AND e107_value !='' ";
|
||||||
$serialz_qry .= "AND e107_name IN (".implode(",",$serialized_prefs).") ";
|
$serialz_qry .= "AND e107_name IN (".implode(",",$serialized_prefs).") ";
|
||||||
@@ -1645,7 +1655,8 @@ function update_706_to_800($type='')
|
|||||||
|
|
||||||
if ($do_save)
|
if ($do_save)
|
||||||
{
|
{
|
||||||
save_prefs();
|
// save_prefs();
|
||||||
|
e107::getConfig()->setPref($pref)->save(false,true,true);
|
||||||
$log->logMessage(LAN_UPDATE_50);
|
$log->logMessage(LAN_UPDATE_50);
|
||||||
// $log->logMessage(implode(', ', $accum), E_MESSAGE_NODISPLAY);
|
// $log->logMessage(implode(', ', $accum), E_MESSAGE_NODISPLAY);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user