diff --git a/web/html/css/aur.css b/web/html/css/aur.css index de661fc0..dada258a 100644 --- a/web/html/css/aur.css +++ b/web/html/css/aur.css @@ -3,6 +3,10 @@ float: right; } +.pkglist-nav .page { + margin: 0 .25em; +} + #pkg-updates td.pkg-new { padding: 0 .5em; } diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php index b42df4c9..0c96a0ba 100644 --- a/web/lib/pkgfuncs.inc.php +++ b/web/lib/pkgfuncs.inc.php @@ -639,12 +639,6 @@ function pkg_search_page($SID="", $dbh=NULL) { // figure out the results to use $first = $_GET['O'] + 1; - if (($_GET['PP'] + $_GET['O']) > $total) { - $last = $total; - } else { - $last = $_GET['PP'] + $_GET['O']; - } - # calculation of pagination links $per_page = ($_GET['PP'] > 0) ? $_GET['PP'] : 50; $current = ceil($first / $per_page); diff --git a/web/template/pkg_search_form.php b/web/template/pkg_search_form.php index 3f900882..49ca876f 100644 --- a/web/template/pkg_search_form.php +++ b/web/template/pkg_search_form.php @@ -30,7 +30,7 @@ $orderby = array( 'd' => __('Descending') ); -$pages = array(50, 100, 250); +$per_page = array(50, 100, 250); ?>