set App::$error on 404 so we don't get two 'Page not found.' page bodies.
This commit is contained in:
@@ -152,6 +152,7 @@ class Router {
|
|||||||
// pretend this is a module so it will initialise the theme
|
// pretend this is a module so it will initialise the theme
|
||||||
\App::$module = '404';
|
\App::$module = '404';
|
||||||
\App::$module_loaded = true;
|
\App::$module_loaded = true;
|
||||||
|
\App::$error = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user