diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-03-04 02:50:42 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-03-04 02:50:42 +0400 |
commit | d6a113ccff34bbc5c2a89d9ca406b2daa86dd7bf (patch) | |
tree | 28d2c5b6adabdc9957f3b9a755bb16f21a978ccf /plugins/ImageGraph | |
parent | 62939c122a683de27ed714f3c1af2fa84700b0ef (diff) |
refs #4747 make sure to restrict sites to login when generating graph url
Diffstat (limited to 'plugins/ImageGraph')
-rw-r--r-- | plugins/ImageGraph/ImageGraph.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/ImageGraph/ImageGraph.php b/plugins/ImageGraph/ImageGraph.php index f0a5b7a7a0..c10a1b22c3 100644 --- a/plugins/ImageGraph/ImageGraph.php +++ b/plugins/ImageGraph/ImageGraph.php @@ -13,6 +13,7 @@ use Piwik\Config; use Piwik\Period; use Piwik\Period\Range; use Piwik\Site; +use Piwik\TaskScheduler; use Piwik\Url; class ImageGraph extends \Piwik\Plugin @@ -135,6 +136,10 @@ class ImageGraph extends \Piwik\Plugin $parameters['idSubtable'] = $idSubtable; } + if (!empty($_GET['_restrictSitesToLogin']) && TaskScheduler::isTaskBeingExecuted()) { + $parameters['_restrictSitesToLogin'] = $_GET['_restrictSitesToLogin']; + } + $report['imageGraphUrl'] = $urlPrefix . Url::getQueryStringFromParameters($parameters); // thanks to API.getRowEvolution, reports with dimensions can now be plotted using an evolution graph |