mobile: fix feed id handling bug in view mode

This commit is contained in:
Andrew Dolgov 2006-09-19 05:41:22 +01:00
parent 244346e943
commit 31d1b6cfc3
1 changed files with 3 additions and 2 deletions

View File

@ -630,7 +630,7 @@
$marked_pic = "<img class='marked' src=\"../images/mark_unset.png\">"; $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>"; $line["title"] . "</a>";
if (get_pref($link, 'HEADLINES_SMART_DATE')) { if (get_pref($link, 'HEADLINES_SMART_DATE')) {
@ -678,6 +678,7 @@
$id = db_escape_string($_GET["id"]); $id = db_escape_string($_GET["id"]);
$feed_id = db_escape_string($_GET["feed"]); $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 $result = db_query($link, "SELECT rtl_content FROM ttrss_feeds
WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]); WHERE id = '$feed_id' AND owner_uid = " . $_SESSION["uid"]);
@ -755,7 +756,7 @@
# print "<img class=\"feedIcon\" src=\"../icons/$feed_id.ico\">"; # 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"] . "\">" . print "<a href=\"" . $line["link"] . "\">" .
truncate_string($line["title"], 30) . "</a>"; truncate_string($line["title"], 30) . "</a>";