* router: sort code.

This commit is contained in:
liugang
2024-04-26 17:24:45 +08:00
parent d13ef4cf6b
commit 1ed615f0bd
+1 -1
View File
@@ -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)
{