From e939722a14b8c806d74e611336f3472a3546f06b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 1 Aug 2006 06:04:31 +0100 Subject: [PATCH] generated feeds always sorted by updated desc --- backend.php | 14 ++++++++------ functions.php | 8 ++++++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/backend.php b/backend.php index 73bcea6a..1aa0f393 100644 --- a/backend.php +++ b/backend.php @@ -869,12 +869,14 @@ $search_q = "&q=$search&m=$match_on&smode=$search_mode"; } - print "  - - "; + if (!$bottom) { + print "  + + "; + } print ""; print ""; diff --git a/functions.php b/functions.php index e0f2cd5e..987b8c9b 100644 --- a/functions.php +++ b/functions.php @@ -1958,7 +1958,7 @@ print ""; } - function queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view, $search, $search_mode, $match_on) { + function queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view, $search, $search_mode, $match_on, $override_order = false) { if ($search) { @@ -2111,6 +2111,10 @@ } else { $order_by = "updated DESC"; } + + if ($override_order) { + $order_by = $override_order; + } $feed_title = ""; @@ -2232,7 +2236,7 @@ $search, $search_mode, $match_on) { $qfh_ret = queryFeedHeadlines($link, $feed, - 30, false, $is_cat, $search, $search_mode, $match_on); + 30, false, $is_cat, $search, $search_mode, $match_on, "updated DESC"); $result = $qfh_ret[0]; $feed_title = htmlspecialchars($qfh_ret[1]); -- 2.39.5