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

This commit is contained in:
haneul 2010-09-28 05:11:30 +00:00
parent 4e461986e4
commit 0056207654

View file

@ -313,8 +313,9 @@
$cache_file = FileHandler::getRealPath($cache_file);
if(!isset($GLOBALS['__MODULE_EXTEND__'])){
if(!file_exists($cache_file)) {
// check pre install
if(file_exists(FileHandler::getRealPath('./files')) && !file_exists($cache_file)) {
$arr = array();
$output = executeQueryArray('module.getModuleExtend');
if($output->data){
@ -327,9 +328,13 @@
$str = sprintf($str, join(',',$arr));
FileHandler::writeFile($cache_file, $str);
$GLOBALS['__MODULE_EXTEND__'] = include($cache_file);
} else {
$GLOBALS['__MODULE_EXTEND__'] = array();
}
$GLOBALS['__MODULE_EXTEND__'] = include($cache_file);
}
return $GLOBALS['__MODULE_EXTEND__'];