summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index e0f2cd5ee..987b8c9bc 100644
--- a/functions.php
+++ b/functions.php
@@ -1958,7 +1958,7 @@
print "</runtime-info>";
}
- 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]);