diff options
author | Andrew Dolgov <[email protected]> | 2011-07-30 19:22:38 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-07-30 19:22:38 +0400 |
commit | 9d9faf6dc2e9387a7bfe3040c36bc8bf9b87294e (patch) | |
tree | 3bf40c1a694cc73d97b088c41a985a1da4bd8192 | |
parent | 52c8007d81140725f206f54fce325ce0f8e2a386 (diff) |
fix 'view as rss' not working correctly for search results
-rw-r--r-- | functions.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/functions.php b/functions.php index 699cfb93b..6deeef461 100644 --- a/functions.php +++ b/functions.php @@ -4275,6 +4275,12 @@ if ($is_cat) $cat_q = "&is_cat=$is_cat"; + if ($search) { + $search_q = "&q=$search&m=$match_on&smode=$search_mode"; + } else { + $search_q = ""; + } + $rss_link = htmlspecialchars(get_self_url_prefix() . "/backend.php?op=rss&id=$feed_id$cat_q$search_q"); @@ -4323,12 +4329,6 @@ } } - if ($search) { - $search_q = "&q=$search&m=$match_on&smode=$search_mode"; - } else { - $search_q = ""; - } - $reply .= " <a href=\"#\" title=\"".__("View as RSS feed")."\" |