From 66b97158b79453785f069d3f05c57fea338ba761 Mon Sep 17 00:00:00 2001 From: drigato Date: Fri, 19 Sep 2014 15:30:06 -0400 Subject: [PATCH] Make API on by default - fix --- airtime_mvc/application/forms/GeneralPreferences.php | 1 - airtime_mvc/application/models/Preference.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/airtime_mvc/application/forms/GeneralPreferences.php b/airtime_mvc/application/forms/GeneralPreferences.php index 1402814e8..34b60e704 100644 --- a/airtime_mvc/application/forms/GeneralPreferences.php +++ b/airtime_mvc/application/forms/GeneralPreferences.php @@ -91,7 +91,6 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm _("Enabled"))); $third_party_api->setValue(Application_Model_Preference::GetAllow3rdPartyApi()); $third_party_api->setDecorators(array('ViewHelper')); - $third_party_api->setValue(true); $this->addElement($third_party_api); $locale = new Zend_Form_Element_Select("locale"); diff --git a/airtime_mvc/application/models/Preference.php b/airtime_mvc/application/models/Preference.php index e73069f43..814b5e388 100644 --- a/airtime_mvc/application/models/Preference.php +++ b/airtime_mvc/application/models/Preference.php @@ -443,7 +443,7 @@ class Application_Model_Preference public static function GetAllow3rdPartyApi() { $val = self::getValue("third_party_api"); - return (strlen($val) == 0 ) ? "0" : $val; + return (strlen($val) == 0 ) ? "1" : $val; } public static function SetPhone($phone)