mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Clear JS/CSS Cache after theme change.
This commit is contained in:
parent
4ed708f2fc
commit
a9eb2bd727
@ -55,7 +55,7 @@ function loadJSAddons()
|
||||
e107::css('core', 'bootstrap-select/bootstrap-select.min.css', 'jquery');
|
||||
e107::js('core', 'bootstrap-select/bootstrap-select.min.js', 'jquery', 2);
|
||||
|
||||
e107::css('core', 'bootstrap-multiselect/css/bootstrap-multiselect.css', 'jquery');
|
||||
// e107::css('core', 'bootstrap-multiselect/css/bootstrap-multiselect.css', 'jquery');
|
||||
e107::js('core', 'bootstrap-multiselect/js/bootstrap-multiselect.js', 'jquery', 2);
|
||||
|
||||
// TODO: remove typeahead.
|
||||
|
@ -703,9 +703,10 @@ function update_706_to_800($type='')
|
||||
if(e107::getDb()->select("core", "*", $serialz_qry))
|
||||
{
|
||||
if($just_check) return update_needed('Convert serialized core prefs');
|
||||
while ($row = e107::getDb()->fetch(MYSQL_ASSOC))
|
||||
while ($row = e107::getDb()->fetch())
|
||||
{
|
||||
$status = e107::getDb('sql2')->update('core',"e107_value=\"".convert_serialized($row['e107_value'])."\" WHERE e107_name='".$row['e107_name']."'") ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR;
|
||||
|
||||
$status = e107::getDb('sql2')->update('core',"e107_value=\"".convert_serialized($row['e107_value'])."\" WHERE e107_name='".$row['e107_name']."'") ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR;
|
||||
|
||||
$log->addDebug(LAN_UPDATE_22.$row['e107_name'].": ". $status);
|
||||
}
|
||||
@ -1896,10 +1897,11 @@ function get_default_prefs()
|
||||
return $pref;
|
||||
}
|
||||
|
||||
function convert_serialized($serializedData)
|
||||
function convert_serialized($serializedData, $type='')
|
||||
{
|
||||
$arrayData = unserialize($serializedData);
|
||||
return e107::serialize($arrayData,FALSE);
|
||||
$data = e107::serialize($arrayData,FALSE);
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1744,10 +1744,12 @@ class themeHandler
|
||||
|
||||
if($contentCheck === true)
|
||||
{
|
||||
$sql->db_Delete("menus", "menu_layout !='' ");
|
||||
$sql->delete("menus", "menu_layout !='' ");
|
||||
}
|
||||
|
||||
e107::getCache()->clear();
|
||||
e107::getCache()->clearAll('js');
|
||||
e107::getCache()->clearAll('css');
|
||||
|
||||
if($core->save())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user