mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 06:41:32 +00:00
move to Article:
+ static function purge_orphans($do_output = false) {
move to Feeds
+ static function getGlobalUnread($user_id = false) {
+ static function getCategoryTitle($cat_id) {
+ static function getLabelUnread($label_id, $owner_uid = false) {
This commit is contained in:
@@ -506,7 +506,7 @@
|
||||
$unread = getFeedUnread($feed, $cat_view);
|
||||
|
||||
if ($cat_view && $feed > 0 && $include_children)
|
||||
$unread += getCategoryChildrenUnread($feed);
|
||||
$unread += Feeds::getCategoryChildrenUnread($feed);
|
||||
|
||||
if ($unread > 0) {
|
||||
$view_query_part = " unread = true AND ";
|
||||
@@ -670,7 +670,7 @@
|
||||
$feed_title = T_sprintf("Search results: %s", $search);
|
||||
} else {
|
||||
if ($cat_view) {
|
||||
$feed_title = getCategoryTitle($feed);
|
||||
$feed_title = Feeds::getCategoryTitle($feed);
|
||||
} else {
|
||||
if (is_numeric($feed) && $feed > 0) {
|
||||
$result = db_query("SELECT title,site_url,last_error,last_updated
|
||||
|
||||
Reference in New Issue
Block a user