summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-08-04 15:20:23 +0400
committerAndrew Dolgov <[email protected]>2011-08-04 15:32:10 +0400
commit7131797307c2a6f7c57920dee6f21881d3373e98 (patch)
treee76c845cdae889fda321dfb3c0a5469728852b4a /functions.php
parentc3fed9e63d60ec3aa1c4067efb848670c797112b (diff)
implement workaround for missing autoloaded headlines for adaptive & unread modes; reduce js debugging (refs #280)
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php18
1 files changed, 4 insertions, 14 deletions
diff --git a/functions.php b/functions.php
index 21693c500..7c5916a1a 100644
--- a/functions.php
+++ b/functions.php
@@ -4944,10 +4944,7 @@
$topmost_article_ids = array();
- if (!$offset) {
- $offset = 0;
- }
-
+ if (!$offset) $offset = 0;
if ($subop == "undefined") $subop = "";
$subop_split = explode(":", $subop);
@@ -5024,12 +5021,12 @@
$match_on = "both";
}
- $real_offset = $offset * $limit;
+ //$real_offset = $offset * $limit;
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("H0", $timing_info);
$qfh_ret = queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view,
- $search, $search_mode, $match_on, $override_order, $real_offset);
+ $search, $search_mode, $match_on, $override_order, $offset);
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("H1", $timing_info);
@@ -5055,7 +5052,7 @@
if (db_num_rows($result) > 0) {
- $lnum = $limit*$offset;
+ $lnum = $offset+1;
$num_unread = 0;
$cur_feed_title = '';
@@ -5532,13 +5529,6 @@
}
}
-# if (!$offset) {
-# if ($headlines_count > 0) print "</div>";
-# print "</div>";
-# }
-
- #print "]]></content>";
-
return array($topmost_article_ids, $headlines_count, $feed, $disable_cache,
$vgroup_last_feed, $reply['content'], $reply['toolbar']);
}