summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-01 06:04:31 +0100
committerAndrew Dolgov <[email protected]>2006-08-01 06:04:31 +0100
commite939722a14b8c806d74e611336f3472a3546f06b (patch)
treea5728167defff4b206f59d8aefd0f4fdaf6149ce /functions.php
parent234e467cad708a98044cdcd647466e48feb9835b (diff)
generated feeds always sorted by updated desc
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]);