mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Replace $this->stop() with proper exceptions
This commit is contained in:
parent
5b7ce90a3d
commit
d8a0773b97
26 changed files with 109 additions and 69 deletions
|
|
@ -867,7 +867,7 @@ class menuAdminController extends menu
|
|||
$oAdmin = getClass('admin');
|
||||
if($menu_title == $oAdmin->getAdminMenuName() && $itemInfo->parent_srl == 0)
|
||||
{
|
||||
return $this->stop('msg_cannot_delete_for_admin_topmenu');
|
||||
return new BaseObject(-1002, 'msg_cannot_delete_for_admin_topmenu');
|
||||
}
|
||||
|
||||
if($itemInfo->parent_srl) $parent_srl = $itemInfo->parent_srl;
|
||||
|
|
@ -892,7 +892,7 @@ class menuAdminController extends menu
|
|||
$this->_checkHomeMenuInOriginMenu($originMenu, $siteInfo->mid, $isStartmenuInclude);
|
||||
if($isStartmenuInclude)
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('msg_cannot_delete_homemenu');
|
||||
return new BaseObject(-1003, 'msg_cannot_delete_homemenu');
|
||||
}
|
||||
|
||||
$oDB = DB::getInstance();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue