]> git.wh0rd.org Git - tt-rss.git/commitdiff
ignore VFEED_GROUP_BY_FEED when generating syndicated feeds
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 17 Feb 2013 09:48:15 +0000 (13:48 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 17 Feb 2013 09:48:15 +0000 (13:48 +0400)
classes/handler/public.php
include/functions.php

index 3d2becccde04c0c5d4ac4fb94c50e3515373d336..4a9b0c48eeb6ad0a89b8d0f5648f0bd9dd892975 100644 (file)
@@ -25,7 +25,8 @@ class Handler_Public extends Handler {
 
                $qfh_ret = queryFeedHeadlines($this->link, $feed,
                        $limit, $view_mode, $is_cat, $search, $search_mode,
-                       $match_on, "$date_sort_field DESC", $offset, $owner_uid);
+                       $match_on, "$date_sort_field DESC", $offset, $owner_uid,
+                       false, 0, false, true);
 
                $result = $qfh_ret[0];
                $feed_title = htmlspecialchars($qfh_ret[1]);
index b64d1b373d4cdf25c4c98b25b12e346abd72bd59..981ed595f20880f4092c82e79dd6c2aef9222bf6 100644 (file)
                return $rv;
        }
 
-       function queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view, $search, $search_mode, $match_on, $override_order = false, $offset = 0, $owner_uid = 0, $filter = false, $since_id = 0, $include_children = false) {
+       function queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view, $search, $search_mode, $match_on, $override_order = false, $offset = 0, $owner_uid = 0, $filter = false, $since_id = 0, $include_children = false, $ignore_vfeed_group = false) {
 
                if (!$owner_uid) $owner_uid = $_SESSION["uid"];
 
                                }
 
                                // proper override_order applied above
-                               if ($vfeed_query_part && get_pref($link, 'VFEED_GROUP_BY_FEED', $owner_uid)) {
+                               if ($vfeed_query_part && !$ignore_vfeed_group && get_pref($link, 'VFEED_GROUP_BY_FEED', $owner_uid)) {
                                        if (!$override_order) {
                                                $order_by = "ttrss_feeds.title, $order_by";
                                        } else {