]> git.wh0rd.org - tt-rss.git/commitdiff
fix 'view as rss' not working correctly for search results
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 30 Jul 2011 15:22:38 +0000 (19:22 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 30 Jul 2011 15:22:38 +0000 (19:22 +0400)
functions.php

index 699cfb93bf55dc6031cef000a839d668b48dd205..6deeef461b5755ad5f29b4293abfe88bd4d02507 100644 (file)
 
                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");
 
                        }
                }
 
-               if ($search) {
-                       $search_q = "&q=$search&m=$match_on&smode=$search_mode";
-               } else {
-                       $search_q = "";
-               }
-
                $reply .= "
                        <a href=\"#\"
                                title=\"".__("View as RSS feed")."\"