diff --git a/classes/module/ModuleHandler.class.php b/classes/module/ModuleHandler.class.php index 618d9d54c..d74ce6edf 100644 --- a/classes/module/ModuleHandler.class.php +++ b/classes/module/ModuleHandler.class.php @@ -237,7 +237,7 @@ /** * @brief 모듈 객체를 생성함 **/ - function getModuleInstance($module, $type = 'view') { + function &getModuleInstance($module, $type = 'view') { $class_path = ModuleHandler::getModulePath($module); if(!$class_path) return NULL; diff --git a/config/func.inc.php b/config/func.inc.php index 53a7502bf..f7dbe2d62 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -22,7 +22,7 @@ * @param type disp, proc, controller, class * @return module instance **/ - function getModule($module_name, $type = 'view') { + function &getModule($module_name, $type = 'view') { return ModuleHandler::getModuleInstance($module_name, $type); } diff --git a/index.php b/index.php index 8633f203b..3e6605d98 100644 --- a/index.php +++ b/index.php @@ -47,5 +47,4 @@ $oModuleHandler->init(); $oModule = &$oModuleHandler->procModule(); $oModuleHandler->displayContent($oModule); - ?>