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:
authorStefan Giehl <stefan@piwik.org>2016-09-26 01:22:41 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2016-09-26 01:22:41 +0300
commitab3eba1b854e978ed4f3bcb3b144a4fff2964aab (patch)
tree57c7580412f5c8f79dda5da50d60056ff0ee209e /plugins/Goals/Reports
parentcdebeec92390879f2ae4c7cbacd0969d8f735e41 (diff)
Adds possibility to define a goal description (#10057)
* Adds possibility to define goal description * update db schema * fixed tests * show goal description in goal reports * fix tests
Diffstat (limited to 'plugins/Goals/Reports')
-rw-r--r--plugins/Goals/Reports/Get.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Goals/Reports/Get.php b/plugins/Goals/Reports/Get.php
index b6842b1722..712a986937 100644
--- a/plugins/Goals/Reports/Get.php
+++ b/plugins/Goals/Reports/Get.php
@@ -185,6 +185,9 @@ class Get extends Base
$goal = $this->getGoal($idGoal);
if (!empty($goal['name'])) {
$view->config->title = Piwik::translate('Goals_GoalX', "'" . $goal['name'] . "'");
+ if (!empty($goal['description'])) {
+ $view->config->description = $goal['description'];
+ }
} else {
$view->config->title = Piwik::translate('General_EvolutionOverPeriod');
}