mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Update more modules to throw exceptions
This commit is contained in:
parent
c1cbc5dbdb
commit
be1ce69073
21 changed files with 142 additions and 116 deletions
|
|
@ -614,7 +614,7 @@ class menuAdminModel extends menu
|
|||
$menuItemSrl = Context::get('menu_item_srl');
|
||||
if(!$menuItemSrl)
|
||||
{
|
||||
return $this->setError('msg_invalid_request');
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
}
|
||||
|
||||
$menuItemInfo = $this->getMenuItemInfo($menuItemSrl);
|
||||
|
|
@ -622,7 +622,7 @@ class menuAdminModel extends menu
|
|||
// if menu is shortcut
|
||||
if($menuItemInfo->is_shortcut == 'Y')
|
||||
{
|
||||
return $this->setError('msg_invalid_request');
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
}
|
||||
|
||||
// get module info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue