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:
authormattab <matthieu.aubry@gmail.com>2014-08-04 23:38:19 +0400
committermattab <matthieu.aubry@gmail.com>2014-08-04 23:38:19 +0400
commit50be11d312473bfcdf8697ec6e449534bc01e4cb (patch)
treefcdb813bccec7df5013c46e9f16abf8acf56bc0f /plugins/ImageGraph
parentf87e1b0d8a4883d7a6129c3cf45e74682e472830 (diff)
refs #5895 replace _GET access by helper method2.5.0-b1
as a bonus it fixes the tests without having to use a Monday night's hack
Diffstat (limited to 'plugins/ImageGraph')
-rw-r--r--plugins/ImageGraph/ImageGraph.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/ImageGraph/ImageGraph.php b/plugins/ImageGraph/ImageGraph.php
index dbc7c528ee..5bd61cc6a9 100644
--- a/plugins/ImageGraph/ImageGraph.php
+++ b/plugins/ImageGraph/ImageGraph.php
@@ -8,6 +8,7 @@
*/
namespace Piwik\Plugins\ImageGraph;
+use Piwik\API\Request;
use Piwik\Common;
use Piwik\Config;
use Piwik\Period;
@@ -140,8 +141,9 @@ class ImageGraph extends \Piwik\Plugin
$parameters['_restrictSitesToLogin'] = $_GET['_restrictSitesToLogin'];
}
- if (!empty($_GET['segment'])) {
- $parameters['segment'] = $_GET['segment'];
+ $segment = Request::getRawSegmentFromRequest();
+ if (!empty($segment)) {
+ $parameters['segment'] = $segment;
}
$report['imageGraphUrl'] = $urlPrefix . Url::getQueryStringFromParameters($parameters);