Replace $this->stop() with proper exceptions

This commit is contained in:
Kijin Sung 2018-09-06 00:19:47 +09:00
parent 5b7ce90a3d
commit d8a0773b97
26 changed files with 109 additions and 69 deletions

View file

@ -39,7 +39,10 @@ class boardAdminView extends board {
}
}
if($module_info && $module_info->module != 'board') return $this->stop("msg_invalid_request");
if($module_info && $module_info->module != 'board')
{
throw new Rhymix\Framework\Exceptions\InvalidRequest;
}
// get the module category list
$module_category = $oModuleModel->getModuleCategories();