mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix #2098 create an instance of MessageMobile class instead of MessageView if user is mobile
This commit is contained in:
parent
34a4119dcc
commit
875e5d1c2c
1 changed files with 9 additions and 1 deletions
|
|
@ -949,7 +949,15 @@ class ModuleHandler extends Handler
|
|||
}
|
||||
|
||||
self::_setInputErrorToContext();
|
||||
$oMessageObject = MessageView::getInstance();
|
||||
|
||||
if (Mobile::isFromMobilePhone())
|
||||
{
|
||||
$oMessageObject = MessageMobile::getInstance();
|
||||
}
|
||||
else
|
||||
{
|
||||
$oMessageObject = MessageView::getInstance();
|
||||
}
|
||||
$oMessageObject->setError($error);
|
||||
$oMessageObject->setMessage($message);
|
||||
$oMessageObject->setHttpStatusCode($status_code ?: 403);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue