mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 01:23:32 +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
|
|
@ -97,7 +97,7 @@
|
||||||
$called_position = 'before_display_content';
|
$called_position = 'before_display_content';
|
||||||
$oAddonController = &getController('addon');
|
$oAddonController = &getController('addon');
|
||||||
$addon_file = $oAddonController->getCacheFilePath();
|
$addon_file = $oAddonController->getCacheFilePath();
|
||||||
if(file_exists($addon_file)) @include($addon_file);
|
@include($addon_file);
|
||||||
|
|
||||||
// HTML 출력일 경우 최종적으로 common layout을 씌워서 출력
|
// HTML 출력일 경우 최종적으로 common layout을 씌워서 출력
|
||||||
if(Context::getResponseMethod()=="HTML") {
|
if(Context::getResponseMethod()=="HTML") {
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
$called_position = 'before_module_init';
|
$called_position = 'before_module_init';
|
||||||
$oAddonController = &getController('addon');
|
$oAddonController = &getController('addon');
|
||||||
$addon_file = $oAddonController->getCacheFilePath();
|
$addon_file = $oAddonController->getCacheFilePath();
|
||||||
if(file_exists($addon_file)) @include($addon_file);
|
@include($addon_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@
|
||||||
$called_position = 'before_module_proc';
|
$called_position = 'before_module_proc';
|
||||||
$oAddonController = &getController('addon');
|
$oAddonController = &getController('addon');
|
||||||
$addon_file = $oAddonController->getCacheFilePath();
|
$addon_file = $oAddonController->getCacheFilePath();
|
||||||
if(file_exists($addon_file)) @include($addon_file);
|
@include($addon_file);
|
||||||
|
|
||||||
if(isset($this->xml_info->action->{$this->act}) && method_exists($this, $this->act)) {
|
if(isset($this->xml_info->action->{$this->act}) && method_exists($this, $this->act)) {
|
||||||
|
|
||||||
|
|
@ -323,7 +323,7 @@
|
||||||
$called_position = 'after_module_proc';
|
$called_position = 'after_module_proc';
|
||||||
$oAddonController = &getController('addon');
|
$oAddonController = &getController('addon');
|
||||||
$addon_file = $oAddonController->getCacheFilePath();
|
$addon_file = $oAddonController->getCacheFilePath();
|
||||||
if(file_exists($addon_file)) @include($addon_file);
|
@include($addon_file);
|
||||||
|
|
||||||
if(is_a($output, 'Object') || is_subclass_of($output, 'Object')) {
|
if(is_a($output, 'Object') || is_subclass_of($output, 'Object')) {
|
||||||
$this->setError($output->getError());
|
$this->setError($output->getError());
|
||||||
|
|
|
||||||
|
|
@ -22,11 +22,14 @@
|
||||||
$site_srl = $site_module_info->site_srl;
|
$site_srl = $site_module_info->site_srl;
|
||||||
|
|
||||||
$addon_path = _XE_PATH_.'files/cache/addons/';
|
$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';
|
if($site_srl) $addon_file = $addon_path.$site_srl.'.acivated_addons.cache.php';
|
||||||
else $addon_file = $addon_path.'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);
|
if(!file_exists($addon_file)) $this->makeCacheFile($site_srl);
|
||||||
return $addon_file;
|
return $addon_file;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue