civicrm_api3_setting_getvalue - Skip $config. Use settings.
authorTim Otten <totten@civicrm.org>
Sun, 23 Aug 2015 22:46:41 +0000 (15:46 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 17 Sep 2015 22:45:02 +0000 (15:45 -0700)
api/v3/Setting.php

index f2b4f4b64ca628ad16434f1a7bca4afdf883c4a1..09e46fb6639d666f69395562efb16d9fc44e149d 100644 (file)
@@ -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),