$search_q = "&q=$search&m=$match_on&smode=$search_mode";
}
- print "
- <a target=\"_new\"
- href=\"backend.php?op=rss&id=$feed_id&is_cat=$is_cat$search_q\"
- <img class=\"noborder\"
- alt=\"Generated feed\" src=\"images/feed-icon-12x12.png\">
- </a>";
+ if (!$bottom) {
+ print "
+ <a target=\"_new\"
+ href=\"backend.php?op=rss&id=$feed_id&is_cat=$is_cat$search_q\"
+ <img class=\"noborder\"
+ alt=\"Generated feed\" src=\"images/feed-icon-12x12.png\">
+ </a>";
+ }
print "</td>";
print "</tr></table>";
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) {
} else {
$order_by = "updated DESC";
}
+
+ if ($override_order) {
+ $order_by = $override_order;
+ }
$feed_title = "";
$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]);