File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 5656/**
5757 * @var array Server config
5858 */
59- $ config = require_once ' server_config.php ' ;
59+ $ config = require __DIR__ . ' / server_config.php ' ;
6060
6161$ ini = '' ;
6262foreach ($ config ['ini ' ] as $ key => $ value )
Original file line number Diff line number Diff line change 99 */
1010
1111// Load our functions...
12- require_once ' functions.php ' ;
12+ require __DIR__ . ' / functions.php ' ;
1313
1414/**
1515 * @var array Server config
1616 */
17- $ config = require_once ' server_config.php ' ;
17+ $ config = require __DIR__ . ' / server_config.php ' ;
1818
1919error_reporting ($ config ['error_reporting ' ]);
2020
8484 $ title = 'Error 404 ' ;
8585 $ page = 'error-404 ' ;
8686
87- require_once __DIR__ . '/pages/_template.php ' ;
87+ require __DIR__ . '/pages/_template.php ' ;
8888
8989 $ function_clean_vars ();
9090
117117 $ fi = new FilesystemIterator ($ SplFileInfo ->getRealPath ());
118118 }
119119
120- $ paths [] = [
120+ $ paths [$ pathname ] = [
121121 'type ' => $ SplFileInfo ->getType (),
122122 'realPath ' => $ SplFileInfo ->getRealPath (),
123123 'filename ' => $ SplFileInfo ->getFilename (),
137137
138138$ page = 'default ' ;
139139
140- require_once __DIR__ . '/pages/_template.php ' ;
140+ require __DIR__ . '/pages/_template.php ' ;
141141
142142$ function_clean_vars ();
You can’t perform that action at this time.
0 commit comments