[aur-dev] [PATCH] Fix for 'More' and 'Less' paging breakage.
--- web/lib/pkgfuncs.inc | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 3608012..3b73b34 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -881,8 +881,6 @@ function pkg_search_page($SID="") { $qnext = $q."LIMIT ".($O+$PP).", ".$PP; //next page's worth $q.= "LIMIT ".$O.", ".$PP; - - $result = db_query($q, $dbh); print "<center>\n"; @@ -1053,6 +1051,7 @@ function pkg_search_page($SID="") { print "</tr>\n"; print "</table>\n"; # print "<input type='hidden' name='All_IDs' value='".$all_ids."'>\n"; + print "<input type='hidden' name='O' value='".$O."'>\n"; if ($_REQUEST["do_MyPackages"]) { print "<input type='hidden' name='do_MyPackages' value='1'>\n"; } -- 1.5.3.7
--- web/lib/pkgfuncs.inc | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 3b73b34..ff7572f 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -1052,6 +1052,7 @@ function pkg_search_page($SID="") { print "</table>\n"; # print "<input type='hidden' name='All_IDs' value='".$all_ids."'>\n"; print "<input type='hidden' name='O' value='".$O."'>\n"; + print "<input type='hidden' name='PP' value='".$PP."'>\n"; if ($_REQUEST["do_MyPackages"]) { print "<input type='hidden' name='do_MyPackages' value='1'>\n"; } -- 1.5.3.7
participants (1)
-
eliott