Deprecate some deprecated address functions: defaultCurrencySymbol #14687
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Reviewer's partial of #14576
Before
Deprecated calls to $config->defaultCurrencySymbol
After
Calls to CRM_Core_BAO_Country::defaultCurrencySymbol()
Technical Details
This is pretty confusing - $config->defaultCurrencySymbol calls
due to the magic merge - so changing $config->defaultCurrencySymbol to CRM_Core_BAO_Country::defaultCurrencySymbol() does the same thing (and probably I would have rathered keep the scope of one PR to just doing those swaps).
However that function https://github.com/civicrm/civicrm-core/compare/master...eileenmcnaughton:matt?expand=1#diff-cad2bac1dfa829957024f6c1da207254L163 was then calling
$config->defaultCurrencySymbol(Civi::settings()->get('defaultCurrency'));
which in turn callsCRM_Core_BAO_Country::defaultCurrencySymbol($defaultCurrency);
so this cuts the extra function out of that loop & deprecates itComments
I didn't feel able to review changes to multiple functions in one hit so pulled out one change to review & merge in the first instance from the larger PR