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 <?php
/** /**
* @class ModuleHandler * @class ModuleHandler
* @author NHN (developers@xpressengine.com) * @author zero (zero@nzeo.com)
* @brief Handling modules * @brief Handling modules
* *
* @remarks This class is to excute actions of modules. * @remarks This class is to excute actions of modules.

View file

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