Can easily overwrite website configuration

This commit is contained in:
Pierre 2018-05-07 18:59:15 +02:00
parent 2289d54084
commit 2d867458e8
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
config/overwrite.php

View File

@ -34,6 +34,9 @@ $cs->register("config", $config);
foreach(glob(PROJECT_PATH."config/*.php") as $confFile){
require $confFile;
}
//Reload overwrite config if any
if(file_exists(PROJECT_PATH."config/overwrite.php"))
require PROJECT_PATH."config/overwrite.php";
unset($config);
//Connexion to the database