get feed_id from article ref_id in outputArticleXML()

This commit is contained in:
Andrew Dolgov 2007-05-17 13:42:14 +01:00
parent 4548a580c5
commit 10eb9da857
1 changed files with 9 additions and 1 deletions

View File

@ -3401,6 +3401,14 @@
function outputArticleXML($link, $id, $feed_id, $mark_as_read = true) { function outputArticleXML($link, $id, $feed_id, $mark_as_read = true) {
/* we can figure out feed_id from article id anyway, why do we
* pass feed_id here? */
$result = db_query($link, "SELECT feed_id FROM ttrss_user_entries
WHERE ref_id = '$id'");
$feed_id = db_fetch_result($result, 0, "feed_id");
print "<article id='$id'><![CDATA["; print "<article id='$id'><![CDATA[";
$result = db_query($link, "SELECT rtl_content FROM ttrss_feeds $result = db_query($link, "SELECT rtl_content FROM ttrss_feeds