1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-09 13:11:34 +00:00

limit number of loaded headlines

This commit is contained in:
Andrew Dolgov
2005-09-05 13:54:07 +01:00
parent bb7cfaceb1
commit cb1083a1f6
3 changed files with 25 additions and 1 deletions

View File

@@ -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