diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index 28957a6ee..b7cf82c76 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -1384,7 +1384,7 @@ function update_706_to_800($type='') { $th = e107::getSingleton('themeHandler'); $tmp = $th->getThemeInfo($pref['sitetheme']); - if($th->setTheme($pref['sitetheme'])) + if($th->setTheme($pref['sitetheme'], false)) { e107::getMessage()->addDebug("Updated SiteTheme prefs"); } diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index e103c3326..3a930426e 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -1337,7 +1337,7 @@ class themeHandler * @param string $name [optional] name (folder) of the theme to set. * @return boolean TRUE on success, FALSE otherwise */ - function setTheme($name = '') + function setTheme($name = '', $contentCheck = true) { $core = e107::getConfig('core'); $sql = e107::getDb(); @@ -1376,8 +1376,10 @@ class themeHandler - - $this->installContentCheck($name); + if($contentCheck === true) + { + $this->installContentCheck($name); + } $this->theme_adminlog('01', $name.', style.css');