diff options
author | Thomas Lange <code@nerdmind.de> | 2017-04-11 22:51:24 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-04-11 22:51:24 +0200 |
commit | 4802aeada5b8fde0848852ee56454c887738ead4 (patch) | |
tree | 1fef2384e734c9d3ee74eef74691af6fba431e93 /core/namespace/Application.php | |
parent | e38d3ed0c779619c8260585f794931c8f55fdd54 (diff) | |
download | blog-4802aeada5b8fde0848852ee56454c887738ead4.tar.gz blog-4802aeada5b8fde0848852ee56454c887738ead4.tar.xz blog-4802aeada5b8fde0848852ee56454c887738ead4.zip |
The control structures "require_once" have been replaced by a simple "require" (except within the 403.php and 404.php where it makes sense, because these files can be directly called or included).
Diffstat (limited to 'core/namespace/Application.php')
-rw-r--r-- | core/namespace/Application.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/namespace/Application.php b/core/namespace/Application.php index 5bcd724..e5afb85 100644 --- a/core/namespace/Application.php +++ b/core/namespace/Application.php @@ -148,7 +148,7 @@ class Application { # Exit application with the 403 error page #=============================================================================== public static function error403(): void { - require_once ROOT.'403.php'; + require ROOT.'403.php'; exit(); } @@ -156,7 +156,7 @@ class Application { # Exit application with the 404 error page #=============================================================================== public static function error404(): void { - require_once ROOT.'404.php'; + require ROOT.'404.php'; exit(); } } |