diff --git a/library/Icinga/Data/PivotTable.php b/library/Icinga/Data/PivotTable.php index c76d1ec7b..cf703ae9c 100644 --- a/library/Icinga/Data/PivotTable.php +++ b/library/Icinga/Data/PivotTable.php @@ -111,7 +111,7 @@ class PivotTable */ protected function getPaginationParameter($axis, $param, $default = null) { - $request = Icinga::app()->getFrontController()->getRequest(); + $request = Icinga::app()->getRequest(); $value = $request->getParam($param, ''); if (strpos($value, ',') > 0) { diff --git a/library/Icinga/Data/SimpleQuery.php b/library/Icinga/Data/SimpleQuery.php index 9751a2756..bbc23a15f 100644 --- a/library/Icinga/Data/SimpleQuery.php +++ b/library/Icinga/Data/SimpleQuery.php @@ -435,7 +435,7 @@ class SimpleQuery implements QueryInterface, Queryable, Iterator if ($itemsPerPage === null || $pageNumber === null) { // Detect parameters from request - $request = Icinga::app()->getFrontController()->getRequest(); + $request = Icinga::app()->getRequest(); if ($itemsPerPage === null) { $itemsPerPage = $request->getParam('limit', 25); } diff --git a/library/Icinga/Test/BaseTestCase.php b/library/Icinga/Test/BaseTestCase.php index 43f2e6224..9f7404ae9 100644 --- a/library/Icinga/Test/BaseTestCase.php +++ b/library/Icinga/Test/BaseTestCase.php @@ -180,7 +180,7 @@ namespace Icinga\Test { */ public function getRequestMock() { - return Icinga::app()->getFrontController()->getRequest(); + return Icinga::app()->getRequest(); } /** diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index 1b1584ccf..7bb0e7a48 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -1252,7 +1252,7 @@ class Form extends Zend_Form public function getRequest() { if ($this->request === null) { - $this->request = Icinga::app()->getFrontController()->getRequest(); + $this->request = Icinga::app()->getRequest(); } return $this->request; diff --git a/library/Icinga/Web/Form/Element/Button.php b/library/Icinga/Web/Form/Element/Button.php index dda6479fb..f62cfde21 100644 --- a/library/Icinga/Web/Form/Element/Button.php +++ b/library/Icinga/Web/Form/Element/Button.php @@ -75,6 +75,6 @@ class Button extends FormElement */ protected function getRequest() { - return Icinga::app()->getFrontController()->getRequest(); + return Icinga::app()->getRequest(); } } diff --git a/library/Icinga/Web/Response.php b/library/Icinga/Web/Response.php index f29442a46..b11ecd78e 100644 --- a/library/Icinga/Web/Response.php +++ b/library/Icinga/Web/Response.php @@ -68,7 +68,7 @@ class Response extends Zend_Controller_Response_Http public function getRequest() { if ($this->request === null) { - $this->request = Icinga::app()->getFrontController()->getRequest(); + $this->request = Icinga::app()->getRequest(); } return $this->request; } diff --git a/library/Icinga/Web/Url.php b/library/Icinga/Web/Url.php index 3a12b5d77..7c3829537 100644 --- a/library/Icinga/Web/Url.php +++ b/library/Icinga/Web/Url.php @@ -102,7 +102,7 @@ class Url if ($app->isCli()) { return new FakeRequest(); } else { - return $app->getFrontController()->getRequest(); + return $app->getRequest(); } } diff --git a/library/Icinga/Web/Widget/SortBox.php b/library/Icinga/Web/Widget/SortBox.php index 7a09c2f36..c9d38f2b7 100644 --- a/library/Icinga/Web/Widget/SortBox.php +++ b/library/Icinga/Web/Widget/SortBox.php @@ -116,7 +116,7 @@ class SortBox extends AbstractWidget { if ($this->query !== null) { if ($request === null) { - $request = Icinga::app()->getFrontController()->getRequest(); + $request = Icinga::app()->getRequest(); } if (($sort = $request->getParam('sort'))) { diff --git a/library/Icinga/Web/Widget/Tabs.php b/library/Icinga/Web/Widget/Tabs.php index 220393aff..95dfdb389 100644 --- a/library/Icinga/Web/Widget/Tabs.php +++ b/library/Icinga/Web/Widget/Tabs.php @@ -309,7 +309,7 @@ EOT; private function renderRefreshTab() { - $url = Icinga::app()->getFrontController()->getRequest()->getUrl(); + $url = Icinga::app()->getRequest()->getUrl(); $tab = $this->get($this->getActiveName()); if ($tab !== null) {