summaryrefslogtreecommitdiffstats
path: root/web/lib
diff options
context:
space:
mode:
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/pkgfuncs.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc
index 03deea29..b38c7da5 100644
--- a/web/lib/pkgfuncs.inc
+++ b/web/lib/pkgfuncs.inc
@@ -419,13 +419,13 @@ function pkg_search_page($SID="") {
if (isset($_GET["PP"])) {
$_GET["PP"] = intval($_GET["PP"]);
- if ($_GET["PP"] < 25)
- $_GET["PP"] = 25;
- else if ($_GET["PP"] > 100)
- $_GET["PP"] = 100;
+ if ($_GET["PP"] < 50)
+ $_GET["PP"] = 50;
+ else if ($_GET["PP"] > 250)
+ $_GET["PP"] = 250;
}
else {
- $_GET["PP"] = 25;
+ $_GET["PP"] = 50;
}
// FIXME: pull out DB-related code. all of it.
@@ -560,7 +560,7 @@ function pkg_search_page($SID="") {
if ($total > 1 || $total == 0) {
# calculation of pagination links
- $per_page = ($_GET['PP'] > 0) ? $_GET['PP'] : 25;
+ $per_page = ($_GET['PP'] > 0) ? $_GET['PP'] : 50;
$current = ceil($first / $per_page);
$pages = ceil($total / $per_page);
$templ_pages = array();