Data\SimpleQuery: get front controller without ZF

This commit is contained in:
Thomas Gelf 2014-06-06 05:48:29 +00:00
parent 6b0a212094
commit 4b8e09b12a
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ abstract class SimpleQuery implements QueryInterface, Queryable
{ {
if ($itemsPerPage === null || $pageNumber === null) { if ($itemsPerPage === null || $pageNumber === null) {
// Detect parameters from request // Detect parameters from request
$request = Zend_Controller_Front::getInstance()->getRequest(); $request = Icinga::app()->getFrontController()->getRequest();
if ($itemsPerPage === null) { if ($itemsPerPage === null) {
$itemsPerPage = $request->getParam('limit', 20); $itemsPerPage = $request->getParam('limit', 20);
} }