removed php_sapi_name() === 'cli' check that assumed development config

master
Guillermo Dev 7 years ago
parent 79a60f13b2
commit 58e1d85104

@ -71,7 +71,7 @@ class Configuration {
public static function getConfigFilePath()
{
if (null === self::$customConfigFilePath) {
$envfile = (php_sapi_name() === 'cli' || apache_getenv('APPLICATION_ENV') === 'development') ? 'local' : 'global';
$envfile = apache_getenv('APPLICATION_ENV') === 'development' ? 'local' : 'global';
self::$customConfigFilePath = realpath(dirname(__FILE__) . "/../../../../../../config/configuration.$envfile.php");
}
return self::$customConfigFilePath;

Loading…
Cancel
Save