mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Prevent theme "default content" notification during upgrade.
This commit is contained in:
@@ -1384,7 +1384,7 @@ function update_706_to_800($type='')
|
|||||||
{
|
{
|
||||||
$th = e107::getSingleton('themeHandler');
|
$th = e107::getSingleton('themeHandler');
|
||||||
$tmp = $th->getThemeInfo($pref['sitetheme']);
|
$tmp = $th->getThemeInfo($pref['sitetheme']);
|
||||||
if($th->setTheme($pref['sitetheme']))
|
if($th->setTheme($pref['sitetheme'], false))
|
||||||
{
|
{
|
||||||
e107::getMessage()->addDebug("Updated SiteTheme prefs");
|
e107::getMessage()->addDebug("Updated SiteTheme prefs");
|
||||||
}
|
}
|
||||||
|
@@ -1337,7 +1337,7 @@ class themeHandler
|
|||||||
* @param string $name [optional] name (folder) of the theme to set.
|
* @param string $name [optional] name (folder) of the theme to set.
|
||||||
* @return boolean TRUE on success, FALSE otherwise
|
* @return boolean TRUE on success, FALSE otherwise
|
||||||
*/
|
*/
|
||||||
function setTheme($name = '')
|
function setTheme($name = '', $contentCheck = true)
|
||||||
{
|
{
|
||||||
$core = e107::getConfig('core');
|
$core = e107::getConfig('core');
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
@@ -1376,8 +1376,10 @@ class themeHandler
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if($contentCheck === true)
|
||||||
$this->installContentCheck($name);
|
{
|
||||||
|
$this->installContentCheck($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->theme_adminlog('01', $name.', style.css');
|
$this->theme_adminlog('01', $name.', style.css');
|
||||||
|
Reference in New Issue
Block a user