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
|
|
@ -59,7 +59,7 @@ class widgetAdminView extends widget
|
|||
function dispWidgetAdminAddContent()
|
||||
{
|
||||
$module_srl = Context::get('module_srl');
|
||||
if(!$module_srl) return $this->stop("msg_invalid_request");
|
||||
if(!$module_srl) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
|
||||
$document_srl = Context::get('document_srl');
|
||||
$oDocumentModel = getModel('document');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue