From 255accb21568614262d5700d660d34355f27585f Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 20 Jun 2014 13:35:25 +0200 Subject: [PATCH] monitoring/MultiController: use correct controller --- .../controllers/MultiController.php | 21 ++----------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/modules/monitoring/application/controllers/MultiController.php b/modules/monitoring/application/controllers/MultiController.php index 311ebf50d..7e063c38f 100644 --- a/modules/monitoring/application/controllers/MultiController.php +++ b/modules/monitoring/application/controllers/MultiController.php @@ -28,7 +28,7 @@ // {{{ICINGA_LICENSE_HEADER}}} use \Icinga\Web\Form; -use \Icinga\Web\Controller\ActionController; +use Icinga\Module\Monitoring\Controller; use \Icinga\Web\Widget\Tabextension\OutputFormat; use \Icinga\Module\Monitoring\Backend; use \Icinga\Data\SimpleQuery; @@ -41,14 +41,8 @@ use \Icinga\Module\Monitoring\DataView\Comment as CommentView; /** * Displays aggregations collections of multiple objects. */ -class Monitoring_MultiController extends ActionController +class Monitoring_MultiController extends Controller { - public function init() - { - $this->backend = Backend::createBackend($this->_getParam('backend')); - $this->createTabs(); - } - public function hostAction() { $multiFilter = $this->getAllParamsAsArray(); @@ -373,15 +367,4 @@ class Monitoring_MultiController extends ActionController } return $queries; } - - /** - * Return all tabs for this controller - * - * @return Tabs - */ - private function createTabs() - { - $tabs = $this->getTabs(); - $tabs->extend(new OutputFormat()); - } }