mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Don't re-install theme during upgrade unless data is missing.
This commit is contained in:
parent
6b29610927
commit
784d386c36
@ -670,8 +670,9 @@ EOF;
|
||||
if(file_exists(e_PLUGIN."awstats/awstats.graph.php"))
|
||||
{
|
||||
require_once(e_PLUGIN."awstats/awstats.graph.php");
|
||||
$stat = new awstats;
|
||||
|
||||
if($data)
|
||||
if($data = $stat->getData())
|
||||
{
|
||||
return $data;
|
||||
}
|
||||
|
@ -1604,15 +1604,19 @@ function update_706_to_800($type='')
|
||||
|
||||
if (!$just_check) // Running the Upgrade Process.
|
||||
{
|
||||
$th = e107::getSingleton('themeHandler');
|
||||
$tmp = $th->getThemeInfo($pref['sitetheme']);
|
||||
if($th->setTheme($pref['sitetheme'], false))
|
||||
|
||||
if(!is_array($pref['sitetheme_layouts']) || !vartrue($pref['sitetheme_deflayout']))
|
||||
{
|
||||
$log->addDebug("Updated SiteTheme prefs");
|
||||
}
|
||||
else
|
||||
{
|
||||
$log->addDebug("Couldn't update SiteTheme prefs");
|
||||
$th = e107::getSingleton('themeHandler');
|
||||
$tmp = $th->getThemeInfo($pref['sitetheme']);
|
||||
if($th->setTheme($pref['sitetheme'], false))
|
||||
{
|
||||
$log->addDebug("Updated SiteTheme prefs");
|
||||
}
|
||||
else
|
||||
{
|
||||
$log->addDebug("Couldn't update SiteTheme prefs");
|
||||
}
|
||||
}
|
||||
|
||||
$log->toFile('upgrade_v1_to_v2');
|
||||
|
Loading…
x
Reference in New Issue
Block a user