summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-19 14:54:27 +0400
committerAndrew Dolgov <[email protected]>2011-04-19 14:54:27 +0400
commit0780f4f4fdb88df7982c179ac581db5fb64aef7f (patch)
treeeacfa48c6831487acffd03eeee65b292871ccf7d /modules
parente4f7c976225a7b8d0ad6715a19572b781c515302 (diff)
add tooltip with all article tags
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 1adfb23b1..f21ca5814 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -359,7 +359,7 @@
/* update tag cache */
- $tags_str = join(",", $tags_to_cache);
+ $tags_str = asort(join(",", $tags_to_cache));
db_query($link, "UPDATE ttrss_user_entries
SET tag_cache = '$tags_str' WHERE ref_id = '$id'
@@ -373,10 +373,14 @@
$memcache->delete($obj_id);
}
- $tags_str = format_tags_string(get_article_tags($link, $id), $id);
+ $tags = get_article_tags($link, $id);
+ $tags_str = format_tags_string($tags, $id);
+ $tags_str_full = join(", ", $tags);
+
+ if (!$tags_str_full) $tags_str_full = __("no tags");
print json_encode(array("tags_str" => array("id" => $id,
- "content" => $tags_str)));
+ "content" => $tags_str, "content_full" => $tags_str_full)));
return;
}