diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2017-10-06 01:15:43 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-10-06 01:15:43 +0300 |
commit | a834a8609f8fa61dec72398feea119467908352f (patch) | |
tree | bbd9360645781b80b7e5070db20cfdafae3bba02 /plugins | |
parent | 3f4afc49dd940c7dcfd7b0982251868ae708dfbb (diff) |
Add quotes around goal conversion rate metric (#12151)
* Add quotes around goal conversion rate metric
* fix typo
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Goals/Goals.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Goals/Goals.php b/plugins/Goals/Goals.php index b1d10e16f3..ecf6fa4ad2 100644 --- a/plugins/Goals/Goals.php +++ b/plugins/Goals/Goals.php @@ -96,7 +96,7 @@ class Goals extends \Piwik\Plugin foreach ($goals as $goal) { $metric = $computedMetricFactory->createComputedMetric('goal_' . $goal['idgoal'] . '_conversion', 'nb_uniq_visitors', ComputedMetric::AGGREGATION_RATE); - $goalName = Piwik::translate('Goals_GoalX', $goal['name']); + $goalName = '"' . Piwik::translate('Goals_GoalX', $goal['name']) . '"'; $metricName = Piwik::translate('Goals_ConversionRate', $goalName); $metric->setTranslatedName($metricName); $list->addMetric($metric); |