Minahito
minah****@users*****
2005年 11月 25日 (金) 13:26:29 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.2 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.3 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.2 Fri Nov 25 03:10:11 2005 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Fri Nov 25 13:26:29 2005 @@ -449,8 +449,17 @@ function setupRenderSystem(&$controller) { - require_once XOOPS_BASE_PATH."/class/Base_LegacyRenderSystem.class.php"; - $controller->mRenderSystem=new Base_LegacyRenderSystem($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(); } @@ -493,6 +502,11 @@ function setupRenderSystem(&$controller) { + // + // [TODO] + // Controller or Root should have factory-method so that we create a + // instance by a site config. + // require_once XOOPS_BASE_PATH."/class/Legacy_AdminRenderSystem.class.php"; $controller->mRenderSystem=new Legacy_AdminRenderSystem($controller); $controller->mRenderSystem->prepare();