Bläddra i källkod

Upgrade Patch 8.0.0-A5 to 8.0.0-A6

Alex Trofimov 12 år sedan
förälder
incheckning
dc9bbbb7ed
2 ändrade filer med 5 tillägg och 0 borttagningar
  1. 3 0
      inc/classes/BxDolTemplate.php
  2. 2 0
      upgrade/BxDolUpgradeCron.php

+ 3 - 0
inc/classes/BxDolTemplate.php

@@ -215,6 +215,9 @@ class BxDolTemplate extends BxDol implements iBxDolSingleton
         if (!$this->_sSubPath)
             $this->_sSubPath = 'boonex/' . BX_DOL_TEMPLATE_DEFAULT_CODE . '/';
 
+        if (!file_exists(BX_DIRECTORY_PATH_MODULES . $this->_sSubPath)) // just for 8.0.0-A6 upgrade
+            $this->_sSubPath = 'boonex/uni/';
+
         if(isset($_GET[$this->_sCodeKey])) {
             bx_import('BxDolPermalinks');
             if(BxDolPermalinks::getInstance()->redirectIfNecessary(array($this->_sCodeKey)))

+ 2 - 0
upgrade/BxDolUpgradeCron.php

@@ -7,6 +7,8 @@
  * @{
  */
 
+$_COOKIE['skin'] = 'uni'; // just for 8.0.0-A6 upgrade
+
 $aPathInfo = pathinfo(__FILE__);
 define ('BX_UPGRADE_DIR_UPGRADES', $aPathInfo['dirname'] . '/files/');