1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:45:55 +00:00

add special indication for categories having unread items in child categories

This commit is contained in:
Andrew Dolgov
2012-08-13 19:52:34 +04:00
parent be514d00c9
commit 2c5f231e43
4 changed files with 71 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ class Pref_Feeds extends Protected_Handler {
$cat['hidden'] = sql_bool_to_bool($line['collapsed']);
$cat['type'] = 'category';
$cat['unread'] = 0;
$cat['child_unread'] = 0;
$cat['items'] = $this->get_category_items($line['id']);
@@ -167,6 +168,7 @@ class Pref_Feeds extends Protected_Handler {
$cat['hidden'] = sql_bool_to_bool($line['collapsed']);
$cat['type'] = 'category';
$cat['unread'] = 0;
$cat['child_unread'] = 0;
$cat['items'] = $this->get_category_items($line['id']);
@@ -189,6 +191,7 @@ class Pref_Feeds extends Protected_Handler {
$cat['type'] = 'category';
$cat['checkbox'] = false;
$cat['unread'] = 0;
$cat['child_unread'] = 0;
$feed_result = db_query($this->link, "SELECT id, title,last_error,
".SUBSTRING_FOR_DATE."(last_updated,1,19) AS last_updated