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:
authordiosmosis <benakamoorthi@fastmail.fm>2014-03-25 11:38:42 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-03-25 11:38:42 +0400
commit257d6c779d3071b27537a4927999c86100127cd9 (patch)
tree03bc4697f587fd443609cda24cad14d4fa55e530
parentc626d8c406dc072da95dbbc49d91550d193f53b1 (diff)
Allow idSite to be overridden in SegmentSelectorControl PHP class.
-rw-r--r--plugins/SegmentEditor/SegmentSelectorControl.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SegmentEditor/SegmentSelectorControl.php b/plugins/SegmentEditor/SegmentSelectorControl.php
index 072e41e94d..4db714fe83 100644
--- a/plugins/SegmentEditor/SegmentSelectorControl.php
+++ b/plugins/SegmentEditor/SegmentSelectorControl.php
@@ -24,7 +24,7 @@ class SegmentSelectorControl extends UIControl
/**
* Constructor.
*/
- public function __construct()
+ public function __construct($idSite = false)
{
parent::__construct();
@@ -32,7 +32,7 @@ class SegmentSelectorControl extends UIControl
$this->cssIdentifier = "segmentEditorPanel";
$this->cssClass = "piwikTopControl";
- $this->idSite = Common::getRequestVar('idSite', false, 'int');
+ $this->idSite = $idSite ?: Common::getRequestVar('idSite', false, 'int');
$this->selectedSegment = Common::getRequestVar('segment', false, 'string');