Fix config parsing for dev_env

Conflicts:
	airtime_mvc/application/configs/conf.php
This commit is contained in:
Albert Santoni 2014-04-22 15:27:43 -04:00
parent d77f107df5
commit dc27465b21
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +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'];
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'];