From ccb01aa152c3fcc0970dde0315004ede6bee3c4f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 20 Jun 2014 12:26:00 +0200 Subject: [PATCH] Monitoring\Controller: add $url to all views There are too many view scripts fiddling with namespaces. There is still the url helper, not sure why it's not going to be used. I may roll this back one far day... --- modules/monitoring/library/Monitoring/Controller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/monitoring/library/Monitoring/Controller.php b/modules/monitoring/library/Monitoring/Controller.php index 666101263..3fffa1b6c 100644 --- a/modules/monitoring/library/Monitoring/Controller.php +++ b/modules/monitoring/library/Monitoring/Controller.php @@ -30,6 +30,7 @@ namespace Icinga\Module\Monitoring; use Icinga\Web\Controller\ActionController; +use Icinga\Web\Url; use Icinga\File\Csv; /** @@ -57,6 +58,7 @@ class Controller extends ActionController protected function moduleInit() { $this->backend = Backend::createBackend($this->_getParam('backend')); + $this->view->url = Url::fromRequest(); } protected function handleFormatRequest($query)