Fix off-by-one error in the "previous 200" link in category listings
authorRohan <rohan1395@yahoo.com>
Mon, 14 Jul 2014 14:16:50 +0000 (19:46 +0530)
committerRohan <rohan1395@yahoo.com>
Thu, 17 Jul 2014 07:43:22 +0000 (13:13 +0530)
commitbb12d885368116825df4ce8914251e2c09308b9b
treedcf97dc95e04612d0398d80e33ca20345195ca74
parentc9a2a365f421db9a95a0d9193ce340582d0b6f1c
Fix off-by-one error in the "previous 200" link in category listings
with until=param

When an until parameter is given i.e. going to a previous page, the
category page does the sql query in descending order. In that case,
the previous page link was given an until paramter that was one more
than the last needed result, since until= is interpreted as up-to but
not including, unlike from=, which is starting from and including.

Bug: 36964
Change-Id: I7eaf58d78136ac069a2d9122bca03f87863d2c0b
includes/CategoryViewer.php