Added possible override for config
This commit is contained in:
parent
90381aec54
commit
e543e9ceea
|
@ -25,6 +25,10 @@ $defaultConfig = [
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (file_exists('ConfigOverride.php')) {
|
||||||
|
$userConfig = require('ConfigOverride.php');
|
||||||
|
} else {
|
||||||
$userConfig = require('ConfigUser.php');
|
$userConfig = require('ConfigUser.php');
|
||||||
|
}
|
||||||
|
|
||||||
return array('config' => array_replace_recursive($defaultConfig, $userConfig));
|
return array('config' => array_replace_recursive($defaultConfig, $userConfig));
|
||||||
|
|
Loading…
Reference in a new issue