r7784 getModuleExtend() 보완

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7752 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-10-11 06:56:24 +00:00
parent 5c1391e06e
commit 5b8d3321cb
2 changed files with 15 additions and 6 deletions

View file

@ -298,10 +298,16 @@
/**
* @brief 특정 module extend 가져옴
**/
function getModuleExtend($parent_module, $extend_module, $type, $kind='') {
function getModuleExtend($parent_module, $type, $kind='') {
$key = $parent_module.'.'.$kind.'.'.$type;
$module_extend_info = $this->loadModuleExtends();
$extend = $module_extend_info[$parent_module.'.'.$kind.'.'.$type];
return $extend;
if(array_key_exists($key, $module_extend_info))
{
return $module_extend_info[$key];
}
return false;
}
/**
@ -323,7 +329,7 @@
}
}
$str = '<?PHP $__module_extend_info__=array(%s); return $__module_extend_info__; ?>';
$str = '<?PHP return array(%s); ?>';
$str = sprintf($str, join(',',$arr));
FileHandler::writeFile($cache_file, $str);