mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#18573678 애드온 불러오는 코드 다듬기
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7087 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f8f1351438
commit
6f40bd03bb
4 changed files with 8 additions and 5 deletions
|
|
@ -22,11 +22,14 @@
|
|||
$site_srl = $site_module_info->site_srl;
|
||||
|
||||
$addon_path = _XE_PATH_.'files/cache/addons/';
|
||||
if(!is_dir($addon_path)) FileHandler::makeDir($addon_path);
|
||||
|
||||
if($site_srl) $addon_file = $addon_path.$site_srl.'.acivated_addons.cache.php';
|
||||
else $addon_file = $addon_path.'acivated_addons.cache.php';
|
||||
|
||||
if($this->addon_file_called) return $addon_file;
|
||||
$this->addon_file_called = true;
|
||||
|
||||
if(!is_dir($addon_path)) FileHandler::makeDir($addon_path);
|
||||
if(!file_exists($addon_file)) $this->makeCacheFile($site_srl);
|
||||
return $addon_file;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue