Minahito
minah****@users*****
2006年 10月 16日 (月) 16:39:20 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.2 xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.2 Sun Oct 15 01:39:29 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php Mon Oct 16 16:39:20 2006 @@ -18,6 +18,7 @@ require_once XOOPS_ROOT_PATH . "/modules/legacy/kernel/Legacy_CacheInformation.class.php"; require_once XOOPS_ROOT_PATH . "/modules/legacy/kernel/Legacy_PublicControllerStrategy.class.php"; +require_once XOOPS_ROOT_PATH . "/modules/legacy/class/Legacy_Debugger.class.php"; /** * This class is a virtual controller that has the compatibility with XOOPS 2.0.x. @@ -84,6 +85,11 @@ var $mGetLanguageName = null; /** + * @var XCube_Delegate + */ + var $mSetupDebugger = null; + + /** * @var XoopsLogger */ var $mLogger = null; @@ -116,6 +122,9 @@ $this->mCheckEnableModuleCache =& new XCube_Delegate(); $this->mGetModuleCacheFilePath =& new XCube_Delegate(); $this->mGetBlockCacheFilePath =& new XCube_Delegate(); + + $this->mSetupDebugger =& new XCube_Delegate(); + $this->mSetupDebugger->add('Legacy_DebuggerManager::createInstance'); set_magic_quotes_runtime(0); // ^^; } @@ -598,14 +607,12 @@ { error_reporting(0); - require_once XOOPS_LEGACY_PATH . "/class/DebuggerManager.class.php"; - $debug_mode = $this->mRoot->mContext->mXoopsConfig['debug_mode']; if (defined("OH_MY_GOD_HELP_ME")) { $debug_mode = XOOPS_DEBUG_PHP; } - $this->mDebugger =& Legacy_DebuggerManager::getInstance($debug_mode); + $this->mSetupDebugger->call(new XCube_Ref($this->mDebugger), $debug_mode); $this->mDebugger->prepare(); $GLOBALS['xoopsDebugger']=&$this->mDebugger;