Minahito
minah****@users*****
2006年 1月 11日 (水) 12:32:38 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.15 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.16 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.15 Sun Jan 8 23:41:20 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Wed Jan 11 12:32:38 2006 @@ -24,9 +24,8 @@ var $mDialogMode=false; - function Legacy_Controller(&$root) + function Legacy_Controller() { - parent::XCube_Controller($root); set_magic_quotes_runtime(0); // ^^; // @@ -52,7 +51,6 @@ { parent::executeCommon(); - // ---------------------------------------------------------- // The following lines is comment out for publishing snapshot // ---------------------------------------------------------- @@ -399,10 +397,13 @@ return $languageManager; } - + + /** + * @deprecated + */ function _setupRenderSystem() { - $this->_mControllerState->setupRenderSystem($this); + // TODO remove this method. } function executeHeader() @@ -703,18 +704,7 @@ function setupRenderSystem(&$controller) { - // - // [TODO] - // Controller or Root should have factory-method so that we create a - // instance by a site config. - // - $classPath=$controller->mRoot->mSiteConfig['Legacy_RenderSystem']['path']; - $className=$controller->mRoot->mSiteConfig['Legacy_RenderSystem']['class']; - - require_once XOOPS_ROOT_PATH.$classPath."/".$className.".class.php"; - - $controller->mRenderSystem=new $className($controller); - $controller->mRenderSystem->prepare(); + // TODO remove this method. } function setupBlock(&$controller) @@ -769,6 +759,8 @@ function setupRenderSystem(&$controller) { + // TODO remove this method. + // // [TODO] // Controller or Root should have factory-method so that we create a