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

This commit is contained in:
ChanMyeong 2010-09-07 01:20:54 +00:00
parent c5fa82f3b7
commit 6c13cf0229
2 changed files with 853 additions and 852 deletions

View file

@ -1,7 +1,7 @@
<?php
/**
* @class ModuleHandler
* @author NHN (developers@xpressengine.com)
* @author zero (zero@nzeo.com)
* @brief Handling modules
*
* @remarks This class is to excute actions of modules.

View file

@ -1,7 +1,7 @@
<?php
/**
* @class ModuleObject
* @author NHN (developers@xpressengine.com)
* @author zero (zero@nzeo.com)
* @brief base class of ModuleHandler
**/
@ -146,13 +146,14 @@
$this->setMessage($msg_code);
// message 모듈의 에러 표시
$oMessageView = &getView('message');
$oMessageView->setError(-1);
$oMessageView->setMessage($msg_code);
$oMessageView->dispMessage();
$type = Mobile::isFromMobilePhone() ? 'mobile' : 'view';
$oMessageObject = &ModuleHandler::getModuleInstance('message',$type);
$oMessageObject->setError(-1);
$oMessageObject->setMessage($msg_code);
$oMessageObject->dispMessage();
$this->setTemplatePath($oMessageView->getTemplatePath());
$this->setTemplateFile($oMessageView->getTemplateFile());
$this->setTemplatePath($oMessageObject->getTemplatePath());
$this->setTemplateFile($oMessageObject->getTemplateFile());
return $this;
}