1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

tag editor

This commit is contained in:
Andrew Dolgov
2006-12-07 08:48:00 +01:00
parent faf40998b3
commit 0b126ac277
6 changed files with 165 additions and 9 deletions

View File

@@ -3009,4 +3009,21 @@
}
function get_article_tags($link, $id) {
$a_id = db_escape_string($id);
$tmp_result = db_query($link, "SELECT DISTINCT tag_name FROM
ttrss_tags WHERE post_int_id = (SELECT int_id FROM ttrss_user_entries WHERE
ref_id = '$a_id' AND owner_uid = '".$_SESSION["uid"]."') ORDER BY tag_name");
$tags = array();
while ($tmp_line = db_fetch_assoc($tmp_result)) {
array_push($tags, $tmp_line["tag_name"]);
}
return $tags;
}
?>