mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +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
|
|
@ -106,9 +106,9 @@ class editorAdminView extends editor
|
|||
$oEditorModel = getModel('editor');
|
||||
$component = $oEditorModel->getComponent($component_name,$site_srl);
|
||||
|
||||
if(!$component->component_name) {
|
||||
$this->stop('msg_invalid_request');
|
||||
return;
|
||||
if(!$component->component_name)
|
||||
{
|
||||
throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
}
|
||||
|
||||
Context::set('component', $component);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue