git-svn-id: http://xe-core.googlecode.com/svn/trunk@1184 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-17 00:32:32 +00:00
parent d29541b5f4
commit 55285bd3f4
3 changed files with 8 additions and 10 deletions

View file

@ -241,6 +241,8 @@
$class_path = ModuleHandler::getModulePath($module);
if(!$class_path) return NULL;
if(__DEBUG__) $start_time = getMicroTime();
// global 변수에 미리 생성해 둔 객체가 없으면 새로 생성
if(!$GLOBALS['_loaded_module'][$module][$type]) {
@ -296,6 +298,8 @@
$GLOBALS['_loaded_module'][$module][$type] = $oModule;
}
if(__DEBUG__) $GLOBALS['__elapsed_class_load__'] += getMicroTime() - $start_time;
// 객체 리턴
return $GLOBALS['_loaded_module'][$module][$type];
}