Make API on by default - fix
This commit is contained in:
parent
28399b70cc
commit
66b97158b7
|
@ -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");
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue