mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 16:19:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7718 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4e461986e4
commit
0056207654
1 changed files with 8 additions and 3 deletions
|
|
@ -313,8 +313,9 @@
|
||||||
$cache_file = FileHandler::getRealPath($cache_file);
|
$cache_file = FileHandler::getRealPath($cache_file);
|
||||||
|
|
||||||
if(!isset($GLOBALS['__MODULE_EXTEND__'])){
|
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();
|
$arr = array();
|
||||||
$output = executeQueryArray('module.getModuleExtend');
|
$output = executeQueryArray('module.getModuleExtend');
|
||||||
if($output->data){
|
if($output->data){
|
||||||
|
|
@ -327,9 +328,13 @@
|
||||||
$str = sprintf($str, join(',',$arr));
|
$str = sprintf($str, join(',',$arr));
|
||||||
|
|
||||||
FileHandler::writeFile($cache_file, $str);
|
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__'];
|
return $GLOBALS['__MODULE_EXTEND__'];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue