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/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/application.php')
-rw-r--r-- | core/application.php | 6 |
1 files changed, 3 insertions, 3 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 |