Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2017-10-06 01:15:43 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2017-10-06 01:15:43 +0300
commita834a8609f8fa61dec72398feea119467908352f (patch)
treebbd9360645781b80b7e5070db20cfdafae3bba02 /plugins
parent3f4afc49dd940c7dcfd7b0982251868ae708dfbb (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.php2
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);