Make view does not exist an error instead of fatal

pull/3988/head
Isaac Connor 2024-05-08 14:28:40 -04:00
parent df29df0f0a
commit 2a06e0faf2
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ if ( $includeFiles = getSkinIncludes('views/'.$view.'.php', true, true) ) {
CSPHeaders($view, $cspNonce);
foreach ( $includeFiles as $includeFile ) {
if (!file_exists($includeFile)) {
ZM\Fatal("View '$view' does not exist, redirecting to console");
ZM\Error("View '$view' does not exist, redirecting to console");
header('Location: ?view=console');
return;
}