diff options
author | mattab <matthieu.aubry@gmail.com> | 2015-07-01 17:13:28 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2015-07-01 17:39:16 +0300 |
commit | 50c0d36150a8e3f2ec612c972a3ed4781c763497 (patch) | |
tree | b75ea8e4b5e69d446868a5f5b14b4725f14395fc /plugins/Overlay | |
parent | 30b8736fcd08016ef360ee79570c9807b7ad62d6 (diff) |
Simplify overlay controller logic
Diffstat (limited to 'plugins/Overlay')
-rw-r--r-- | plugins/Overlay/Controller.php | 4 | ||||
-rw-r--r-- | plugins/Overlay/templates/index.twig | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/plugins/Overlay/Controller.php b/plugins/Overlay/Controller.php index 3d11b0dd0f..a649cd4a03 100644 --- a/plugins/Overlay/Controller.php +++ b/plugins/Overlay/Controller.php @@ -39,10 +39,6 @@ class Controller extends \Piwik\Plugin\Controller $this->setGeneralVariablesView($view); - $view->idSite = $this->idSite; - $view->date = Common::getRequestVar('date', 'today'); - $view->period = Common::getRequestVar('period', 'day'); - $view->ssl = ProxyHttp::isHttps(); $this->outputCORSHeaders(); diff --git a/plugins/Overlay/templates/index.twig b/plugins/Overlay/templates/index.twig index 0917f19672..96518eb9be 100644 --- a/plugins/Overlay/templates/index.twig +++ b/plugins/Overlay/templates/index.twig @@ -65,8 +65,8 @@ <script type="text/javascript"> broadcast._isInit = true; $(function () { - var iframeSrc = 'index.php?module=Overlay&action=startOverlaySession&idSite={{ idSite }}&period={{ period }}&date={{ date }}'; - Piwik_Overlay.init(iframeSrc, '{{ idSite }}', '{{ period }}', '{{ date }}'); + var iframeSrc = 'index.php?module=Overlay&action=startOverlaySession&idSite={{ idSite }}&period={{ period }}&date={{ rawDate }}'; + Piwik_Overlay.init(iframeSrc, '{{ idSite }}', '{{ period }}', '{{ rawDate }}'); window.Piwik_Overlay_Translations = { domain: "{{ 'Overlay_Domain'|translate }}" |