mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@108 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
47f322b297
commit
07378c8fe2
3 changed files with 8 additions and 6 deletions
|
|
@ -84,8 +84,8 @@
|
|||
}
|
||||
|
||||
// 권한변수 설정
|
||||
Context::set('grant',$grant);
|
||||
$this->grant = $grant;
|
||||
Context::set('grant',$this->grant);
|
||||
|
||||
// 모듈의 init method 실행
|
||||
$this->init();
|
||||
|
|
|
|||
|
|
@ -70,7 +70,10 @@
|
|||
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;
|
||||
|
||||
|
|
@ -95,7 +98,7 @@
|
|||
/**
|
||||
* @brief 모듈 객체를 생성함
|
||||
**/
|
||||
function getModuleInstance($module, $type = 'view', $module_info = NULL) {
|
||||
function getModuleInstance($module, $type = 'view') {
|
||||
$class_path = ModuleHandler::getModulePath($module);
|
||||
if(!$class_path) return NULL;
|
||||
|
||||
|
|
@ -137,9 +140,6 @@
|
|||
// 생성된 객체에 자신이 호출된 위치를 세팅해줌
|
||||
$oModule->setModulePath($class_path);
|
||||
|
||||
// 모듈 정보 세팅
|
||||
$oModule->setModuleInfo($module_info);
|
||||
|
||||
// 해당 위치에 속한 lang 파일을 읽음
|
||||
Context::loadLang($class_path.'lang');
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,8 @@
|
|||
Context::loadLang($editor_path);
|
||||
|
||||
// 스킨 디렉토리 세팅
|
||||
$skin_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
||||
$this->setTemplatePath($skin_path);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue