Fix testing when config_local.php exists
This commit is contained in:
parent
515031d854
commit
bc47068da6
2 changed files with 3 additions and 2 deletions
|
@ -7,5 +7,5 @@
|
|||
*/
|
||||
|
||||
require_once 'config_default.php';
|
||||
if (file_exists(dirname(__FILE__). '/config_local.php'))
|
||||
if (file_exists(dirname(__FILE__). '/config_local.php') && (php_sapi_name() !== 'cli'))
|
||||
require_once 'config_local.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue