From 1ed615f0bd71df68e8d18067d30cc1e1118b5f90 Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 26 Apr 2024 17:24:45 +0800 Subject: [PATCH] * router: sort code. --- framework/router.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/router.class.php b/framework/router.class.php index e997bdfbaf..b94439e47f 100755 --- a/framework/router.class.php +++ b/framework/router.class.php @@ -397,7 +397,6 @@ class router extends baseRouter self::$loadedConfigs[$moduleName] = $moduleName; - $extConfigPath = array(); global $config; if($config and (!isset($config->$moduleName) or !is_object($config->$moduleName))) $config->$moduleName = new stdclass(); @@ -414,6 +413,7 @@ class router extends baseRouter $configDirFiles = helper::ls($this->getModulePath($appName, $moduleName) . DS . 'config', '.php'); /* 查找扩展配置文件。Get extension config files. */ + $extConfigPath = array(); if($config->framework->extensionLevel > 0) $extConfigPath = $this->getModuleExtPath($moduleName, 'config'); if($config->framework->extensionLevel >= 1) {