diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2014-08-04 20:55:23 +0400 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2014-08-04 20:55:23 +0400 |
commit | d32b1db541d134fdb73b6cc963d4c0e7a04d701b (patch) | |
tree | 9657561680b4f709c2bd25d4aa9d28f6d7fd6ea2 /plugins/ImageGraph | |
parent | e7c460432366f043b84c9f49fea40f528c769599 (diff) |
refs #5895 should append segment parameter to imageGraph if set in the original request
Diffstat (limited to 'plugins/ImageGraph')
-rw-r--r-- | plugins/ImageGraph/ImageGraph.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/ImageGraph/ImageGraph.php b/plugins/ImageGraph/ImageGraph.php index 0344d8567f..dbc7c528ee 100644 --- a/plugins/ImageGraph/ImageGraph.php +++ b/plugins/ImageGraph/ImageGraph.php @@ -140,6 +140,10 @@ class ImageGraph extends \Piwik\Plugin $parameters['_restrictSitesToLogin'] = $_GET['_restrictSitesToLogin']; } + if (!empty($_GET['segment'])) { + $parameters['segment'] = $_GET['segment']; + } + $report['imageGraphUrl'] = $urlPrefix . Url::getQueryStringFromParameters($parameters); // thanks to API.getRowEvolution, reports with dimensions can now be plotted using an evolution graph |