summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
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