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 <thomas.steur@googlemail.com>2014-03-04 02:50:42 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-03-04 02:50:42 +0400
commitd6a113ccff34bbc5c2a89d9ca406b2daa86dd7bf (patch)
tree28d2c5b6adabdc9957f3b9a755bb16f21a978ccf /plugins/ImageGraph
parent62939c122a683de27ed714f3c1af2fa84700b0ef (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.php5
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