Abort on parse error of config.default.ini.php (#714)
If there is an error parsing the default config file, then abort.
This commit is contained in:
parent
4c5013bc82
commit
50924b9213
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,8 @@ if(!file_exists('config.default.ini.php'))
|
|||
die('The default configuration file "config.default.ini.php" is missing!');
|
||||
|
||||
$config = parse_ini_file('config.default.ini.php', true, INI_SCANNER_TYPED);
|
||||
if(!$config)
|
||||
die('Error parsing config.default.ini.php');
|
||||
|
||||
if(file_exists('config.ini.php')) {
|
||||
// Replace default configuration with custom settings
|
||||
|
|
Loading…
Reference in a new issue