diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/application.php | 6 | ||||
-rw-r--r-- | core/namespace/Application.php | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/application.php b/core/application.php index 11f5b83..3f59fdb 100644 --- a/core/application.php +++ b/core/application.php @@ -17,7 +17,7 @@ define('ROOT', dirname(__DIR__).'/'); #=============================================================================== spl_autoload_register(function($classname) { $classname = str_replace('\\', '/', $classname); - require_once "namespace/{$classname}.php"; + require "namespace/{$classname}.php"; }); #=============================================================================== @@ -36,7 +36,7 @@ HTTP::init($_GET, $_POST, $_FILES, TRUE); #=============================================================================== # Include configuration #=============================================================================== -require_once 'configuration.php'; +require 'configuration.php'; #=============================================================================== # Overwrite configuration if admin @@ -66,7 +66,7 @@ if(defined('ADMINISTRATION') AND ADMINISTRATION === TRUE) { #=============================================================================== # Include functions #=============================================================================== -require_once 'functions.php'; +require 'functions.php'; #=============================================================================== # TRY: PDOException 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(); } } |