From fd0c89ad6d22b99e2fe0c7532f4416916b75cf98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 21 Jul 2011 16:14:55 +0200 Subject: [PATCH] =?utf8?q?Paginating=20f=C3=BCr=20sehr=20gro=C3=9Fe=20Seit?= =?utf8?q?en=20gefixt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/DB/Helper/Paginated.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/DB/Helper/Paginated.pm b/SL/DB/Helper/Paginated.pm index e170ad383..c490e2ab6 100644 --- a/SL/DB/Helper/Paginated.pm +++ b/SL/DB/Helper/Paginated.pm @@ -59,9 +59,9 @@ sub make_common_pages { sub calc_visibility { my ($cur, $max, $this) = @_; any { $_ } abs($cur - $this) < 5, - $cur <= 3, - $cur == $max, - any { ! abs ($cur - $this) % $_ } 10, 50, 100, 500, 1000, 5000; + $this <= 3, + $this == $max, + any { abs ($cur - $this) == $_ } 10, 50, 100, 500, 1000, 5000; } 1; -- 2.20.1