mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 10:19:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1540 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
86e8af5b3f
commit
f2e47e336d
37 changed files with 27 additions and 3019 deletions
|
|
@ -128,9 +128,10 @@
|
|||
// type, grant 값 구함
|
||||
$type = $xml_info->action->{$this->act}->type;
|
||||
$grant = $xml_info->action->{$this->act}->grant;
|
||||
$kind = strpos(strtolower($this->act),'admin')!==false?'admin':'';
|
||||
|
||||
// 모듈 객체 생성
|
||||
$oModule = &$this->getModuleInstance($this->module, $type);
|
||||
$oModule = &$this->getModuleInstance($this->module, $type, $kind);
|
||||
if(!is_object($oModule)) {
|
||||
$this->error = 'msg_module_is_not_exists';
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@
|
|||
$this->grant = $grant;
|
||||
Context::set('grant', $grant);
|
||||
|
||||
$this->init();
|
||||
if(method_exists($this, 'init')) $this->init();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -285,7 +285,8 @@
|
|||
$forward = $oModuleModel->getActionForward($this->act);
|
||||
if($forward->module && $forward->type && $forward->act) {
|
||||
|
||||
$oModule = &getModule($forward->module, $forward->type);
|
||||
$kind = strpos(strtolower($forward->act),'admin')!==false?'admin':'';
|
||||
$oModule = &getModule($forward->module, $forward->type, $kind);
|
||||
$xml_info = $oModuleModel->getModuleActionXml($forward->module);
|
||||
$oModule->setAct($forward->act);
|
||||
$oModule->init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue