From: Tim Otten Date: Wed, 16 Sep 2015 02:01:03 +0000 (-0700) Subject: Remove CRM_Core_Config_Defaults X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d7c217ae866ed4977ad1c89229ff925647695943;p=civicrm-core.git Remove CRM_Core_Config_Defaults --- diff --git a/CRM/Core/BAO/Country.php b/CRM/Core/BAO/Country.php index 56fc6cd7aa..b375dd190c 100644 --- a/CRM/Core/BAO/Country.php +++ b/CRM/Core/BAO/Country.php @@ -150,4 +150,9 @@ class CRM_Core_BAO_Country extends CRM_Core_DAO_Country { return $cachedSymbol; } + public static function getDefaultCurrencySymbol($k = NULL) { + $config = CRM_Core_Config::singleton(); + return $config->defaultCurrencySymbol(Civi::settings()->get('defaultCurrency')); + } + } diff --git a/CRM/Core/Config/Defaults.php b/CRM/Core/Config/Defaults.php deleted file mode 100644 index af90e57943..0000000000 --- a/CRM/Core/Config/Defaults.php +++ /dev/null @@ -1,50 +0,0 @@ -defaultCurrencySymbol(Civi::settings()->get('defaultCurrency')); - } - -} diff --git a/CRM/Core/Config/MagicMerge.php b/CRM/Core/Config/MagicMerge.php index 48dc7a514c..d509a4f401 100644 --- a/CRM/Core/Config/MagicMerge.php +++ b/CRM/Core/Config/MagicMerge.php @@ -168,7 +168,7 @@ class CRM_Core_Config_MagicMerge { 'userFrameworkResourceURL' => array('setting-url-abs', NULL, '[civicrm]/.'), 'geocodeMethod' => array('callback', 'CRM_Utils_Geocode', 'getProviderClass'), - 'defaultCurrencySymbol' => array('callback', 'CRM_Core_Config_Defaults', 'getDefaultCurrencySymbol'), + 'defaultCurrencySymbol' => array('callback', 'CRM_Core_BAO_Country', 'getDefaultCurrencySymbol'), ); }