Minahito
minah****@users*****
2006年 11月 8日 (水) 15:12:17 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.15 xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.16 --- xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.15 Tue Nov 7 16:54:06 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php Wed Nov 8 15:12:17 2006 @@ -402,6 +402,10 @@ } $this->_mStrategy->setupModuleContext($this->mRoot->mContext, $dirname); + + if ($this->mRoot->mContext->mModule != null) { + $this->mRoot->mContext->setAttribute('legacy_pagetitle', $this->mRoot->mContext->mModule->mXoopsModule->get('name')); + } } function _processModule() @@ -609,6 +613,10 @@ $this->mRoot->mContext->setThemeName($this->mRoot->mContext->mXoopsConfig['theme_set']); $this->mRoot->mContext->mXoopsConfig['language'] = $this->mRoot->mLanguageManager->getLanguage(); + $this->mRoot->mContext->setAttribute('legacy_sitename', $this->mRoot->mContext->mXoopsConfig['sitename']); + $this->mRoot->mContext->setAttribute('legacy_pagetitle', $this->mRoot->mContext->mXoopsConfig['slogan']); + $this->mRoot->mContext->setAttribute('legacy_slogan', $this->mRoot->mContext->mXoopsConfig['slogan']); + $GLOBALS['xoopsConfig'] = $this->mRoot->mContext->mXoopsConfig; // Compatiblity for 2.0.x $GLOBALS['config_handler'] =& $configHandler; }