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

This commit is contained in:
zero 2007-02-15 14:52:32 +00:00
parent 47f322b297
commit 07378c8fe2
3 changed files with 8 additions and 6 deletions

View file

@ -84,8 +84,8 @@
} }
// 권한변수 설정 // 권한변수 설정
Context::set('grant',$grant);
$this->grant = $grant; $this->grant = $grant;
Context::set('grant',$this->grant);
// 모듈의 init method 실행 // 모듈의 init method 실행
$this->init(); $this->init();

View file

@ -70,7 +70,10 @@
Context::set('act', $act, true); Context::set('act', $act, true);
// 모듈 객체 생성 // 모듈 객체 생성
$oModule = $this->getModuleInstance($module, $type, $module_info); $oModule = $this->getModuleInstance($module, $type);
// 모듈 정보 세팅
$oModule->setModuleInfo($module_info);
if(!is_object($oModule)) return; if(!is_object($oModule)) return;
@ -95,7 +98,7 @@
/** /**
* @brief 모듈 객체를 생성함 * @brief 모듈 객체를 생성함
**/ **/
function getModuleInstance($module, $type = 'view', $module_info = NULL) { function getModuleInstance($module, $type = 'view') {
$class_path = ModuleHandler::getModulePath($module); $class_path = ModuleHandler::getModulePath($module);
if(!$class_path) return NULL; if(!$class_path) return NULL;
@ -137,9 +140,6 @@
// 생성된 객체에 자신이 호출된 위치를 세팅해줌 // 생성된 객체에 자신이 호출된 위치를 세팅해줌
$oModule->setModulePath($class_path); $oModule->setModulePath($class_path);
// 모듈 정보 세팅
$oModule->setModuleInfo($module_info);
// 해당 위치에 속한 lang 파일을 읽음 // 해당 위치에 속한 lang 파일을 읽음
Context::loadLang($class_path.'lang'); Context::loadLang($class_path.'lang');

View file

@ -42,6 +42,8 @@
Context::loadLang($editor_path); Context::loadLang($editor_path);
// 스킨 디렉토리 세팅 // 스킨 디렉토리 세팅
$skin_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
$this->setTemplatePath($skin_path);
return true; return true;
} }