Explorar o código

#140 - auto-loader fixes

Alex Trofimov %!s(int64=11) %!d(string=hai) anos
pai
achega
1eb97eca6e
Modificáronse 3 ficheiros con 2 adicións e 4 borrados
  1. 1 1
      inc/classes/BxDolAlerts.php
  2. 1 1
      periodic/cron.php
  3. 0 2
      upgrade/BxDolUpgradeCron.php

+ 1 - 1
inc/classes/BxDolAlerts.php

@@ -110,7 +110,7 @@ class BxDolAlerts extends BxDol
                 $aHandler = $this->_aHandlers[$iHandlerId];
 
                 if (!empty($aHandler['file']) && !empty($aHandler['class']) && file_exists(BX_DIRECTORY_PATH_ROOT . $aHandler['file'])) {
-                    if(!class_exists($aHandler['class']))
+                    if(!class_exists($aHandler['class'], false))
                         require_once(BX_DIRECTORY_PATH_ROOT . $aHandler['file']);
 
                     $oHandler = new $aHandler['class']();

+ 1 - 1
periodic/cron.php

@@ -110,7 +110,7 @@ function checkCronJob($sPeriods, $aDate = array())
 function runJob($aJob)
 {
     if (!empty($aJob['file']) && !empty($aJob['class']) && file_exists(BX_DIRECTORY_PATH_ROOT . $aJob['file'])) {
-        if (!class_exists($aJob['class']))
+        if (!class_exists($aJob['class'], false))
             require_once(BX_DIRECTORY_PATH_ROOT . $aJob['file']);
 
         $oHandler = new $aJob['class']();

+ 0 - 2
upgrade/BxDolUpgradeCron.php

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