projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[REF] final cleanup - call bulkCreate from migrate_utils
[civicrm-core.git]
/
CRM
/
Utils
/
OpenFlashChart.php
diff --git
a/CRM/Utils/OpenFlashChart.php
b/CRM/Utils/OpenFlashChart.php
index 26e34292ebfcbab0f338e35dd5c76278ff1457fa..178f093bb0b7e832469004dc387aca9faacce11d 100644
(file)
--- a/
CRM/Utils/OpenFlashChart.php
+++ b/
CRM/Utils/OpenFlashChart.php
@@
-98,8
+98,7
@@
class CRM_Utils_OpenFlashChart {
$ySteps = $yMax / 5;
$bars = [];
$ySteps = $yMax / 5;
$bars = [];
- $config = CRM_Core_Config::singleton();
- $symbol = $config->defaultCurrencySymbol;
+ $symbol = CRM_Core_BAO_Country::defaultCurrencySymbol();
foreach ($values as $barCount => $barVal) {
$bars[$barCount] = new bar_glass();
foreach ($values as $barCount => $barVal) {
$bars[$barCount] = new bar_glass();
@@
-214,8
+213,7
@@
class CRM_Utils_OpenFlashChart {
$graphTitle = !empty($params['legend']) ? $params['legend'] : ts('Pie Chart');
// get the currency.
$graphTitle = !empty($params['legend']) ? $params['legend'] : ts('Pie Chart');
// get the currency.
- $config = CRM_Core_Config::singleton();
- $symbol = $config->defaultCurrencySymbol;
+ $symbol = CRM_Core_BAO_Country::defaultCurrencySymbol();
$pie = new pie();
$pie->radius(100);
$pie = new pie();
$pie->radius(100);
@@
-296,8
+294,7
@@
class CRM_Utils_OpenFlashChart {
}
// get the currency.
}
// get the currency.
- $config = CRM_Core_Config::singleton();
- $symbol = $config->defaultCurrencySymbol;
+ $symbol = CRM_Core_BAO_Country::defaultCurrencySymbol();
// set the tooltip.
$tooltip = CRM_Utils_Array::value('tip', $params, "$symbol #val#");
// set the tooltip.
$tooltip = CRM_Utils_Array::value('tip', $params, "$symbol #val#");