Minahito
minah****@users*****
2006年 9月 22日 (金) 19:37:49 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.75 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.76 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.75 Thu Sep 14 18:08:18 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Fri Sep 22 19:37:49 2006 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_Controller.class.php,v 1.1.2.75 2006/09/14 09:08:18 minahito Exp $ + * @version $Id: Legacy_Controller.class.php,v 1.1.2.76 2006/09/22 10:37:49 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -446,8 +446,8 @@ $this->mRoot->mLanguageManager->prepare(); // If you use special page, load message catalog for it. - if (isset($xoopsOption['pagetype'])) { - $this->mRoot->mLanguageManager->loadPageTypeMessageCatalog($xoopsOption['pagetype']); + if (isset($GLOBALS['xoopsOption']['pagetype'])) { + $this->mRoot->mLanguageManager->loadPageTypeMessageCatalog($GLOBALS['xoopsOption']['pagetype']); } } @@ -1209,6 +1209,8 @@ function Legacy_AdminControllerStrategy(&$controller) { + global $xoopsOption; + parent::Legacy_AbstractControllerStrategy($controller); // @@ -1217,6 +1219,13 @@ if (!defined("LEGACY_DEPENDENCE_RENDERER")) { define("LEGACY_DEPENDENCE_RENDERER", "Legacy_AdminRenderSystem"); } + + // + // Cover the spec of admin.php of the system module, for the compatibility. + // + if (isset($_REQUEST['fct']) && $_REQUEST['fct'] == "users") { + $GLOBALS['xoopsOption']['pagetype'] = "user"; + } $this->mSetupBlock =& new XCube_Delegate(); $this->mSetupBlock->register('Legacy_AdminControllerStrategy.SetupBlock');