* Replace the "die()" call.

This commit is contained in:
dingguodong
2023-05-31 10:36:00 +08:00
parent 7398c2e984
commit b03b41760e
5 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ class control extends baseControl
}
if(!is_file($viewFile)) $viewFile = dirname((string) $viewExtPath['common'], 2) . DS . 'view' . DS . $this->devicePrefix . $methodName . ".{$viewType}.php";
if(!is_file($viewFile)) die(js::error($this->lang->notPage) . js::locate('back'));
if(!is_file($viewFile)) helper::end(js::error($this->lang->notPage) . js::locate('back'));
/* Get ext hook files. */
$commonExtHookFiles = glob($viewExtPath['common'] . $this->devicePrefix . $methodName . ".*.{$viewType}.hook.php");