Make view does not exist an error instead of fatal
parent
df29df0f0a
commit
2a06e0faf2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue