mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 13:25:54 +00:00
show amount of feeds category holds in category editor
This commit is contained in:
@@ -1192,9 +1192,11 @@ class Pref_Feeds extends Protected_Handler {
|
|||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
$result = db_query($this->link, "SELECT title,id FROM ttrss_feed_categories
|
$result = db_query($this->link, "SELECT c.title, c.id,COUNT(f.*) AS count
|
||||||
WHERE owner_uid = ".$_SESSION["uid"]."
|
FROM ttrss_feed_categories AS c LEFT JOIN ttrss_feeds AS f ON
|
||||||
ORDER BY title");
|
(f.cat_id = c.id)
|
||||||
|
WHERE c.owner_uid = ".$_SESSION["uid"]."
|
||||||
|
GROUP BY c.title, c.id ORDER BY title");
|
||||||
|
|
||||||
if (db_num_rows($result) != 0) {
|
if (db_num_rows($result) != 0) {
|
||||||
|
|
||||||
@@ -1241,6 +1243,8 @@ class Pref_Feeds extends Protected_Handler {
|
|||||||
</script>
|
</script>
|
||||||
</span>";
|
</span>";
|
||||||
|
|
||||||
|
print "<td align='right' class='insensitive'>";
|
||||||
|
echo T_sprintf("%d feeds", $line['count']);
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
|
|
||||||
++$lnum;
|
++$lnum;
|
||||||
|
|||||||
Reference in New Issue
Block a user