Make API on by default - fix

This commit is contained in:
drigato 2014-09-19 15:30:06 -04:00
parent 28399b70cc
commit 66b97158b7
2 changed files with 1 additions and 2 deletions

View File

@ -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");

View File

@ -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)