summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-24 06:31:57 +0100
committerAndrew Dolgov <[email protected]>2007-08-24 06:31:57 +0100
commit29dfb258c98e2ed4f196784e318d14b05c94a257 (patch)
tree0e0fe968d7039db7d39d86d8781fd5ccf4ffbf2f /backend.php
parent4ab4d3640be960e7ae2749665f1fb91592fa614a (diff)
fix some issues in infinite scrolling
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index 0e4541e74..3783c8226 100644
--- a/backend.php
+++ b/backend.php
@@ -221,11 +221,16 @@
print "<headlines id=\"$feed\"><![CDATA[";
- $topmost_article_ids = outputHeadlinesList($link, $feed, $subop,
+ $ret = outputHeadlinesList($link, $feed, $subop,
$view_mode, $limit, $cat_view, $next_unread_feed, $offset);
+ $topmost_article_ids = $ret[0];
+ $headlines_count = $ret[1];
+
print "]]></headlines>";
+ print "<headlines-count value=\"$headlines_count\"/>";
+
if ($_GET["debug"]) $timing_info = print_checkpoint("10", $timing_info);
if (is_array($topmost_article_ids) && !get_pref($link, 'COMBINED_DISPLAY_MODE')) {