Fix config parsing for dev_env

This commit is contained in:
Albert Santoni 2014-04-22 15:27:43 -04:00
parent d01f5a4ffe
commit 97ce5bdbc5
1 changed files with 5 additions and 1 deletions

View File

@ -35,7 +35,11 @@ class Config {
$CC_CONFIG['baseUrl'] = $values['general']['base_url'];
$CC_CONFIG['basePort'] = $values['general']['base_port'];
$CC_CONFIG['phpDir'] = $values['general']['airtime_dir'];
$CC_CONFIG['dev_env'] = $values['general']['dev_env'];
if (isset($values['general']['dev_env'])) {
$CC_CONFIG['dev_env'] == $values['general']['dev_env'];
} else {
$CC_CONFIG['dev_env'] = 'production';
}
$CC_CONFIG['cache_ahead_hours'] = $values['general']['cache_ahead_hours'];