mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@462 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
aada9b99d7
commit
e25e9b94d3
2 changed files with 7 additions and 11 deletions
|
|
@ -59,18 +59,15 @@
|
||||||
// ModuleModel 객체 생성
|
// ModuleModel 객체 생성
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
|
|
||||||
// 특별히 module이 지정되지 않았을 시에 모듈을 찾기 위해 시도
|
// document_srl이 있으면 document_srl로 모듈과 모듈 정보를 구함
|
||||||
if(!$this->module) {
|
if($this->document_srl) $module_info = $oModuleModel->getModuleInfoByDocumentSrl($this->document_srl);
|
||||||
|
if($this->module && $module_info->module != $this->module) unset($module_info);
|
||||||
|
|
||||||
// document_srl이 있으면 document_srl로 모듈과 모듈 정보를 구함
|
// 아직 모듈을 못 찾았고 $mid값이 있으면 $mid로 모듈을 구함
|
||||||
if($this->document_srl) $module_info = $oModuleModel->getModuleInfoByDocumentSrl($this->document_srl);
|
if(!$module_info && $this->mid) $module_info = $oModuleModel->getModuleInfoByMid($this->mid);
|
||||||
|
|
||||||
// 아직 모듈을 못 찾았고 $mid값이 있으면 $mid로 모듈을 구함
|
// 역시 모듈을 못 찾았고 $module이 없다면 기본 모듈을 찾아봄
|
||||||
if(!$module_info && $this->mid) $module_info = $oModuleModel->getModuleInfoByMid($this->mid);
|
if(!$module_info && !$this->module) $module_info = $oModuleModel->getModuleInfoByMid();
|
||||||
|
|
||||||
// 역시 모듈을 못 찾았고 $module이 없다면 기본 모듈을 찾아봄
|
|
||||||
if(!$module_info && !$this->module) $module_info = $oModuleModel->getModuleInfoByMid();
|
|
||||||
}
|
|
||||||
|
|
||||||
// 모듈 정보가 찾아졌을 경우 모듈 정보에서 기본 변수들을 구함, 모듈 정보에서 module 이름을 구해움
|
// 모듈 정보가 찾아졌을 경우 모듈 정보에서 기본 변수들을 구함, 모듈 정보에서 module 이름을 구해움
|
||||||
if($module_info) {
|
if($module_info) {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@
|
||||||
// module_srl이 있으면 미리 체크하여 존재하는 모듈이면 module_info 세팅
|
// module_srl이 있으면 미리 체크하여 존재하는 모듈이면 module_info 세팅
|
||||||
$module_srl = Context::get('module_srl');
|
$module_srl = Context::get('module_srl');
|
||||||
|
|
||||||
|
|
||||||
// module model 객체 생성
|
// module model 객체 생성
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue