mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 03:31:29 +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:
@@ -1542,7 +1542,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
|
||||
$obj['id'] = 'CAT:' . $cat_id;
|
||||
$obj['items'] = array();
|
||||
$obj['name'] = getCategoryTitle($cat_id);
|
||||
$obj['name'] = Feeds::getCategoryTitle($cat_id);
|
||||
$obj['type'] = 'category';
|
||||
$obj['unread'] = (int) $cat_unread;
|
||||
$obj['bare_id'] = $cat_id;
|
||||
|
||||
@@ -224,7 +224,7 @@ class Pref_Filters extends Handler_Protected {
|
||||
while ($line = $this->dbh->fetch_assoc($result)) {
|
||||
|
||||
$where = sql_bool_to_bool($line["cat_filter"]) ?
|
||||
getCategoryTitle($line["cat_id"]) :
|
||||
Feeds::getCategoryTitle($line["cat_id"]) :
|
||||
($line["feed_id"] ?
|
||||
Feeds::getFeedTitle($line["feed_id"]) : __("All feeds"));
|
||||
|
||||
@@ -497,7 +497,7 @@ class Pref_Filters extends Handler_Protected {
|
||||
|
||||
if (strpos($feed_id, "CAT:") === 0) {
|
||||
$feed_id = (int) substr($feed_id, 4);
|
||||
$feed = getCategoryTitle($feed_id);
|
||||
$feed = Feeds::getCategoryTitle($feed_id);
|
||||
} else {
|
||||
$feed_id = (int) $feed_id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user