Minahito
minah****@users*****
2006年 10月 5日 (木) 19:18:13 JST
Index: xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php:1.1.2.1 xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php:1.1.2.2 --- xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php:1.1.2.1 Thu Oct 5 18:08:21 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php Thu Oct 5 19:18:13 2006 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_HttpContext.class.php,v 1.1.2.1 2006/10/05 09:08:21 minahito Exp $ + * @version $Id: Legacy_HttpContext.class.php,v 1.1.2.2 2006/10/05 10:18:13 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -47,6 +47,21 @@ * A name of the render system used by the controller strategy. */ var $mBaseRenderSystemName = ""; + + /** + * Gets a value of XoopsConfig by $id. + * @param string $id + * @return string + */ + function getXoopsConfig($id = null) + { + if ($id != null) { + return isset($this->mXoopsConfig[$id]) ? $this->mXoopsConfig[$id] : null; + } + + return $this->mXoopsConfig; + } + } class Legacy_Module Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.4 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.5 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.4 Thu Oct 5 18:08:39 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Thu Oct 5 19:18:13 2006 @@ -1,7 +1,7 @@ <?php /** * @package Legacy - * @version $Id: Legacy_Controller.class.php,v 1.1.2.79.2.4 2006/10/05 09:08:39 minahito Exp $ + * @version $Id: Legacy_Controller.class.php,v 1.1.2.79.2.5 2006/10/05 10:18:13 minahito Exp $ */ if (!defined('XOOPS_ROOT_PATH')) exit(); @@ -576,11 +576,12 @@ { $configHandler=&xoops_gethandler('config'); $this->mConfig=&$configHandler->getConfigsByCat(XOOPS_CONF); + $this->mRoot->mContext =& $this->mConfig; $this->setTheme($this->mConfig['theme_set']); $this->mConfig['language'] = $this->mRoot->mLanguageManager->getLanguage(); - $GLOBALS['xoopsConfig']=&$this->mConfig; + $GLOBALS['xoopsConfig'] =& $this->mRoot->mContext; $GLOBALS['config_handler'] =& $configHandler; }