From 709f38e4ed255be7a6d502235cf93171a12c6b4d Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Fri, 30 Mar 2012 17:20:21 -0400 Subject: [PATCH] CC-3567: Don't require API key for API controller when APPLICATION_ENV = "development" -fixed --- airtime_mvc/application/configs/conf.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airtime_mvc/application/configs/conf.php b/airtime_mvc/application/configs/conf.php index fcdece4bc..1bdad8144 100644 --- a/airtime_mvc/application/configs/conf.php +++ b/airtime_mvc/application/configs/conf.php @@ -72,6 +72,10 @@ class Config { $CC_CONFIG['dsn']['database'] = $values['database']['dbname']; $CC_CONFIG['apiKey'] = array($values['general']['api_key']); + + if (APPLICATION_ENV == "development"){ + $CC_CONFIG['apiKey'][] = ""; + } $CC_CONFIG['soundcloud-connection-retries'] = $values['soundcloud']['connection_retries']; $CC_CONFIG['soundcloud-connection-wait'] = $values['soundcloud']['time_between_retries'];