Minahito
minah****@users*****
2006年 10月 20日 (金) 17:04:43 JST
Index: xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.5 xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.6 --- xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.5 Tue Oct 17 00:35:31 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php Fri Oct 20 17:04:43 2006 @@ -578,17 +578,14 @@ function _setupConfig() { - $configHandler=&xoops_gethandler('config'); + $configHandler = &xoops_gethandler('config'); - $config =& $configHandler->getConfigsByCat(XOOPS_CONF); + $this->mRoot->mContext->mXoopsConfig =& $configHandler->getConfigsByCat(XOOPS_CONF); - $this->setTheme($config['theme_set']); - $config['language'] = $this->mRoot->mLanguageManager->getLanguage(); + $this->setTheme($this->mRoot->mContext->mXoopsConfig['theme_set']); + $this->mRoot->mContext->mXoopsConfig['language'] = $this->mRoot->mLanguageManager->getLanguage(); - $this->mRoot->mContext->mXoopsConfig =& $config; - $this->mConfig =& $config; // Compatiblity for 2.1Alpha - $GLOBALS['xoopsConfig'] =& $config; // Compatiblity for 2.0.x - + $GLOBALS['xoopsConfig'] = $this->mRoot->mContext->mXoopsConfig; // Compatiblity for 2.0.x $GLOBALS['config_handler'] =& $configHandler; }