X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FSetting.php;h=adc9e04f84a924b3b4621787a20d001bfb8cb017;hb=4ed3717844366427403633703ab1d29d33b16c4c;hp=5638032038cbd8b541d8a952e285c2275cbb2eec;hpb=2954ccbf995c2aea19d0ab294cb1a890233dd9be;p=civicrm-core.git diff --git a/CRM/Core/BAO/Setting.php b/CRM/Core/BAO/Setting.php index 5638032038..adc9e04f84 100644 --- a/CRM/Core/BAO/Setting.php +++ b/CRM/Core/BAO/Setting.php @@ -511,7 +511,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting { $fields = civicrm_api('setting','getfields', $getFieldsParams); $invalidParams = (array_diff_key($settingParams, $fields['values'])); if (!empty($invalidParams)) { - throw new api_Exception(implode(',', $invalidParams) . " not valid settings"); + throw new API_Exception(implode(',', $invalidParams) . " not valid settings"); } if (!empty($settingParams)) { $filteredFields = array_intersect_key($settingParams, $fields['values']); @@ -539,7 +539,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting { else { list($class,$fn) = explode('::',$fieldSpec['validate_callback']); if (!$class::$fn($value,$fieldSpec)) { - throw new api_Exception("validation failed for {$fieldSpec['name']} = $value based on callback {$fieldSpec['validate_callback']}"); + throw new API_Exception("validation failed for {$fieldSpec['name']} = $value based on callback {$fieldSpec['validate_callback']}"); } } } @@ -552,7 +552,7 @@ class CRM_Core_BAO_Setting extends CRM_Core_DAO_Setting { */ static function validateBoolSetting(&$value, $fieldSpec) { if (!CRM_Utils_Rule::boolean($value)) { - throw new api_Exception("Boolean value required for {$fieldSpec['name']}"); + throw new API_Exception("Boolean value required for {$fieldSpec['name']}"); } if (!$value) { $value = 0;