Minahito
minah****@users*****
2006年 1月 25日 (水) 12:42:57 JST
Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.19 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.20 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.19 Wed Jan 25 00:34:21 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Wed Jan 25 12:42:57 2006 @@ -38,6 +38,9 @@ if(strtolower($urlInfo[0])=="modules" && strtolower($urlInfo[2])=="admin"){ $adminStateFlag=true; } + elseif($urlInfo[0] == "modules" && $urlInfo[1] == "system" && substr($urlInfo[2], 0, 9) == "admin.php") { + $adminStateFlag=true; + } } $this->_mControllerState= $adminStateFlag ? new BaseControllerAdminState() : new BaseControllerPublicState(); @@ -697,6 +700,11 @@ class BaseControllerPublicState extends BaseControllerState { var $mStatusFlag=LEGACY_CONTROLLER_STATE_PUBLIC; + + function BaseControllerPublicState() + { + @define("LEGACY_DEPENDENCE_RENDERER", "Legacy_RenderSystem"); + } function setupModuleController(&$controller) { @@ -753,6 +761,14 @@ { var $mStatusFlag=LEGACY_CONTROLLER_STATE_ADMIN; + function BaseControllerAdminState() + { + // + // TODO We have to develop complated-switching-controller-mechanizm. + // + @define("LEGACY_DEPENDENCE_RENDERER", "Legacy_AdminRenderSystem"); + } + function setupModuleController(&$controller) { require_once XOOPS_BASE_PATH."/class/Legacy_AdminModuleController.class.php";