1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 23:26:41 +02:00

Don't re-install theme during upgrade unless data is missing.

This commit is contained in:
Cameron
2013-05-25 22:30:10 -07:00
parent 6b29610927
commit 784d386c36
2 changed files with 14 additions and 9 deletions

View File

@@ -670,8 +670,9 @@ EOF;
if(file_exists(e_PLUGIN."awstats/awstats.graph.php")) if(file_exists(e_PLUGIN."awstats/awstats.graph.php"))
{ {
require_once(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; return $data;
} }

View File

@@ -1603,6 +1603,9 @@ function update_706_to_800($type='')
if (!$just_check) // Running the Upgrade Process. if (!$just_check) // Running the Upgrade Process.
{
if(!is_array($pref['sitetheme_layouts']) || !vartrue($pref['sitetheme_deflayout']))
{ {
$th = e107::getSingleton('themeHandler'); $th = e107::getSingleton('themeHandler');
$tmp = $th->getThemeInfo($pref['sitetheme']); $tmp = $th->getThemeInfo($pref['sitetheme']);
@@ -1614,6 +1617,7 @@ function update_706_to_800($type='')
{ {
$log->addDebug("Couldn't update SiteTheme prefs"); $log->addDebug("Couldn't update SiteTheme prefs");
} }
}
$log->toFile('upgrade_v1_to_v2'); $log->toFile('upgrade_v1_to_v2');