summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-02-18 04:39:01 +0100
committerSimo Leone <simo@archlinux.org>2008-02-19 00:54:28 +0100
commitaedf2ab6a390b62f1a0de8afe18a5aa53075b9ef (patch)
treec31bdbc108c484be1a50d67aa949f86af67e8aab /web/lib
parent7bad8a8357773e7918e0b794dbec8a36ee9154ad (diff)
downloadaur-aedf2ab6a390b62f1a0de8afe18a5aa53075b9ef.tar.gz
aur-aedf2ab6a390b62f1a0de8afe18a5aa53075b9ef.tar.xz
Fix for 'More' and 'Less' paging breakage.
Fix for 'More' and 'Less' paging breakage. Takes into account PerPage and Category retention.
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 36080124..1e92a904 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -655,7 +655,8 @@ function pkg_search_page($SID="") {
# The search form
#
- print "<form action='/packages.php' method='get'>\n";
+ print "<form action='/packages.php' method='post'>\n";
+ #print "<form action='/packages.php' method='get'>\n";
print "<input type='hidden' name='O' value='".$O."'>\n";
print "<center>\n";
@@ -766,10 +767,8 @@ function pkg_search_page($SID="") {
print "</tr>\n";
print "</table>\n";
print "</center>\n";
- print "</form>";
print "<br />\n";
- print "<form action='/packages.php' method='post'>\n";
# query to pull out package info
#
# $q = "SELECT Packages.*, IF(ISNULL(PackageID), 0, COUNT(*)) AS Votes ";
@@ -881,8 +880,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";