headlines renderer: do not attach topmost article ids

This commit is contained in:
Andrew Dolgov 2013-02-28 16:09:41 +04:00
parent 535a4c7d16
commit b389aeb7fc
1 changed files with 1 additions and 13 deletions

View File

@ -862,7 +862,7 @@ class Feeds extends Handler_Protected {
$view_mode, $limit, $cat_view, $next_unread_feed, $offset, $view_mode, $limit, $cat_view, $next_unread_feed, $offset,
$vgroup_last_feed, $override_order, true); $vgroup_last_feed, $override_order, true);
$topmost_article_ids = $ret[0]; //$topmost_article_ids = $ret[0];
$headlines_count = $ret[1]; $headlines_count = $ret[1];
$returned_feed = $ret[2]; $returned_feed = $ret[2];
$disable_cache = $ret[3]; $disable_cache = $ret[3];
@ -877,18 +877,6 @@ class Feeds extends Handler_Protected {
"vgroup_last_feed" => $vgroup_last_feed, "vgroup_last_feed" => $vgroup_last_feed,
"disable_cache" => (bool) $disable_cache); "disable_cache" => (bool) $disable_cache);
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("20", $timing_info);
if (is_array($topmost_article_ids) && !get_pref($this->link, 'COMBINED_DISPLAY_MODE') && !$_SESSION["bw_limit"]) {
$articles = array();
foreach ($topmost_article_ids as $id) {
array_push($articles, format_article($this->link, $id, false));
}
$reply['articles'] = $articles;
}
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("30", $timing_info); if ($_REQUEST["debug"]) $timing_info = print_checkpoint("30", $timing_info);
$reply['runtime-info'] = make_runtime_info($this->link); $reply['runtime-info'] = make_runtime_info($this->link);