From e66d17dbf81ea58502b53dde962fa705df8dca9d Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Fri, 12 Jul 2013 13:40:21 +0200 Subject: [PATCH] Use class Url in mixedPagination.phtml --- .../views/scripts/mixedPagination.phtml | 83 +++++++++---------- library/Icinga/Data/AbstractQuery.php | 10 ++- library/Icinga/Data/ArrayDatasource.php | 25 +++++- 3 files changed, 71 insertions(+), 47 deletions(-) diff --git a/application/views/scripts/mixedPagination.phtml b/application/views/scripts/mixedPagination.phtml index 7b2b23570..b8ad88a4b 100755 --- a/application/views/scripts/mixedPagination.phtml +++ b/application/views/scripts/mixedPagination.phtml @@ -1,61 +1,58 @@ -pageCount > 1): ?> preserve)) { - $preserve = $this->preserve; -} else { - $preserve = array(); -} -$fromto = t('%d to %d of %d'); +if ($this->pageCount <= 1) return; + +$fromto = $this->translate('%d to %d of %d'); $total = $this->totalItemCount; -?> -