mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
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) {
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user