Data\SimpleQuery: get front controller without ZF
This commit is contained in:
parent
6b0a212094
commit
4b8e09b12a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue