diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-25 11:38:42 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-25 11:38:42 +0400 |
commit | 257d6c779d3071b27537a4927999c86100127cd9 (patch) | |
tree | 03bc4697f587fd443609cda24cad14d4fa55e530 | |
parent | c626d8c406dc072da95dbbc49d91550d193f53b1 (diff) |
Allow idSite to be overridden in SegmentSelectorControl PHP class.
-rw-r--r-- | plugins/SegmentEditor/SegmentSelectorControl.php | 4 |
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'); |