summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-09-05 13:54:07 +0100
committerAndrew Dolgov <[email protected]>2005-09-05 13:54:07 +0100
commitcb1083a1f6e13222b173c72e0627907aa978fd5f (patch)
treeac9a422e5084b9357a6bec30829a1803eca8f15e /backend.php
parentbb7cfaceb1f76bd6dba7d0687ee2e338fd61df5b (diff)
limit number of loaded headlines
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend.php b/backend.php
index 88d19641f..c25410d9a 100644
--- a/backend.php
+++ b/backend.php
@@ -249,6 +249,7 @@
$subop = $_GET["subop"];
$view_mode = $_GET["view"];
$addheader = $_GET["addheader"];
+ $limit = $_GET["limit"];
if (!$skip) $skip = 0;
@@ -338,6 +339,10 @@
if (!$addheader) {
$limit_query_part = "LIMIT ".HEADLINES_PER_PAGE." OFFSET $skip";
+ } else {
+ if ($limit != "All") {
+ $limit_query_part = "LIMIT " . $limit;
+ }
}
$result = pg_query("SELECT