summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-05-17 13:42:14 +0100
committerAndrew Dolgov <[email protected]>2007-05-17 13:42:14 +0100
commit10eb9da8572c3729053d0052493d82200e5e1dcf (patch)
tree9becff178a67ea1f757af34dd49be02e07192e28 /functions.php
parent4548a580c54d7d9b5b91b026fbe56b68e6f5f731 (diff)
get feed_id from article ref_id in outputArticleXML()
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index b12689fb7..3cfcef875 100644
--- a/functions.php
+++ b/functions.php
@@ -3401,6 +3401,14 @@
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[";
$result = db_query($link, "SELECT rtl_content FROM ttrss_feeds
@@ -3594,7 +3602,7 @@
}
if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) {
-
+
$result = db_query($link, "SELECT rtl_content FROM ttrss_feeds
WHERE id = '$feed' AND owner_uid = " . $_SESSION["uid"]);