projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2937fb4
)
civicrm_api3_setting_getvalue - Skip $config. Use settings.
author
Tim Otten
<totten@civicrm.org>
Sun, 23 Aug 2015 22:46:41 +0000
(15:46 -0700)
committer
Tim Otten
<totten@civicrm.org>
Thu, 17 Sep 2015 22:45:02 +0000
(15:45 -0700)
api/v3/Setting.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Setting.php
b/api/v3/Setting.php
index f2b4f4b64ca628ad16434f1a7bca4afdf883c4a1..09e46fb6639d666f69395562efb16d9fc44e149d 100644
(file)
--- a/
api/v3/Setting.php
+++ b/
api/v3/Setting.php
@@
-341,10
+341,10
@@
function _civicrm_api3_setting_get_spec(&$params) {
* API result array.
*/
function civicrm_api3_setting_getvalue($params) {
- $config = CRM_Core_Config::singleton();
- if (isset($config->$params['name'])) {
- return $config->$params['name'];
- }
+
//
$config = CRM_Core_Config::singleton();
+
//
if (isset($config->$params['name'])) {
+
//
return $config->$params['name'];
+
//
}
return CRM_Core_BAO_Setting::getItem(
$params['group'],
CRM_Utils_Array::value('name', $params),