Merge branch '2.5.x' into saas
This commit is contained in:
commit
36b908b4d1
|
@ -90,7 +90,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);
|
||||
//
|
||||
// Add the description element
|
||||
|
|
|
@ -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