sort tags in feedlist output, "technorati tag:" is stripped from tagname
This commit is contained in:
parent
1a7572cb27
commit
3b0948c4ab
|
@ -258,9 +258,10 @@
|
|||
$result = db_query($link, "SELECT tag_name,count(ttrss_entries.id) AS count
|
||||
FROM ttrss_tags,ttrss_entries WHERE
|
||||
post_id = ttrss_entries.id AND unread = true
|
||||
AND ttrss_tags.owner_uid = '$owner_uid' GROUP BY tag_name
|
||||
AND ttrss_tags.owner_uid = '$owner_uid' GROUP BY tag_name
|
||||
UNION
|
||||
select tag_name,0 as count FROM ttrss_tags WHERE owner_uid = '$owner_uid'");
|
||||
select tag_name,0 as count FROM ttrss_tags WHERE owner_uid = '$owner_uid'
|
||||
ORDER BY tag_name");
|
||||
|
||||
$tags = array();
|
||||
|
||||
|
|
|
@ -403,6 +403,8 @@
|
|||
foreach ($entry_tags as $tag) {
|
||||
$tag = db_escape_string(strtolower($tag));
|
||||
|
||||
$tag = str_replace("technorati tag: ", "", $tag);
|
||||
|
||||
$result = db_query($link, "SELECT id FROM ttrss_tags
|
||||
WHERE tag_name = '$tag' AND post_id = '$entry_id' AND
|
||||
owner_uid = ".$_SESSION["uid"]." LIMIT 1");
|
||||
|
|
Loading…
Reference in New Issue