]> git.wh0rd.org Git - tt-rss.git/commitdiff
mobile: fix feed id handling bug in view mode
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 19 Sep 2006 04:41:22 +0000 (05:41 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 19 Sep 2006 04:41:22 +0000 (05:41 +0100)
mobile/functions.php

index ff561001941c1841174e5e0dd0639abb2777c55a..1d50767e44c5f51ab5f4a129a6e718486cbb2464 100644 (file)
                                        $marked_pic = "<img class='marked' src=\"../images/mark_unset.png\">";
                                }
        
-                               $content_link = "<a href=\"?go=view&id=$id&feed=$feed\">" .
+                               $content_link = "<a href=\"?go=view&id=$id&ret_feed=$feed&feed=$feed_id\">" .
                                        $line["title"] . "</a>";
 
                                if (get_pref($link, 'HEADLINES_SMART_DATE')) {
 
                $id = db_escape_string($_GET["id"]);
                $feed_id = db_escape_string($_GET["feed"]);
+               $ret_feed_id = db_escape_string($_GET["ret_feed"]);
 
                $result = db_query($link, "SELECT rtl_content FROM ttrss_feeds
                        WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]);
                                #                               print "<img class=\"feedIcon\" src=\"../icons/$feed_id.ico\">";
                                #                       }
 
-                       $feed_link = "<a href=\"tt-rss.php?go=vf&id=$feed_id\">Feed</a>";
+                       $feed_link = "<a href=\"tt-rss.php?go=vf&id=$ret_feed_id\">Feed</a>";
                        
                        print "<a href=\"" . $line["link"] . "\">" . 
                                truncate_string($line["title"], 30) . "</a>";