diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-12 03:50:42 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-12 03:50:42 +0400 |
commit | 8772fe114e9d430ebbb2c3302e0453e9857ea88e (patch) | |
tree | 617200d6fa4e57914abf82cb2956f6e7c6aa1b56 /core/Plugin/ViewDataTable.php | |
parent | 092b2424df66d8e45ac27e58df680a464d772415 (diff) |
Allow plugins to customise the "Related reports" message
Diffstat (limited to 'core/Plugin/ViewDataTable.php')
-rw-r--r-- | core/Plugin/ViewDataTable.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/Plugin/ViewDataTable.php b/core/Plugin/ViewDataTable.php index 72f46965c0..9dcaad4786 100644 --- a/core/Plugin/ViewDataTable.php +++ b/core/Plugin/ViewDataTable.php @@ -228,6 +228,16 @@ abstract class ViewDataTable implements ViewInterface } $this->overrideViewPropertiesWithQueryParams(); + $this->assignRelatedReportsTitle(); + } + + protected function assignRelatedReportsTitle() + { + if(count($this->config->related_reports) == 1) { + $this->config->related_reports_title = Piwik::translate('General_RelatedReport'); + } else { + $this->config->related_reports_title = Piwik::translate('General_RelatedReports'); + } } /** |