r7684 보완

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7746 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2010-10-04 08:50:25 +00:00
parent 1cb8ad09cd
commit 7dc76e3c88
2 changed files with 3 additions and 3 deletions

View file

@ -83,8 +83,8 @@
*
**/
function insertModuleExtend($parent_module, $extend_module, $type, $kind=''){
if($kind!='admin') $kind = '';
if(!in_array($type,array('model','controller','view')) || !in_array($kind,array('svc','admin'))) return;
if($kind != 'admin') $kind = 'svc';
if(!in_array($type,array('model','controller','view'))) return;
$cache_file = './files/config/module_extend.php';
FileHandler::removeFile($cache_file);

View file

@ -320,7 +320,7 @@
$output = executeQueryArray('module.getModuleExtend');
if($output->data){
foreach($output->data as $v){
$arr[] = sprintf("'%s.%s.%s' => '%s'", $v->parent_module, $v->type, $v->kind, $v->extend_module);
$arr[] = sprintf("'%s.%s.%s' => '%s'", $v->parent_module, $v->kind, $v->type, $v->extend_module);
}
}