Fix testing when config_local.php exists

This commit is contained in:
Sébastien Lucas 2014-03-19 20:12:55 +01:00
parent 515031d854
commit bc47068da6
2 changed files with 3 additions and 2 deletions

View file

@ -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';