From 4b8e09b12a26d00cd4ddce7bc6b69cbe0949e153 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 6 Jun 2014 05:48:29 +0000 Subject: [PATCH] Data\SimpleQuery: get front controller without ZF --- library/Icinga/Data/SimpleQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Icinga/Data/SimpleQuery.php b/library/Icinga/Data/SimpleQuery.php index cdcbfe6aa..82b11d77d 100644 --- a/library/Icinga/Data/SimpleQuery.php +++ b/library/Icinga/Data/SimpleQuery.php @@ -223,7 +223,7 @@ abstract class SimpleQuery implements QueryInterface, Queryable { if ($itemsPerPage === null || $pageNumber === null) { // Detect parameters from request - $request = Zend_Controller_Front::getInstance()->getRequest(); + $request = Icinga::app()->getFrontController()->getRequest(); if ($itemsPerPage === null) { $itemsPerPage = $request->getParam('limit', 20); }