1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 01:25:56 +00:00

add experimental base for plugin vfeeds (3 pane mode not yet

implemented)
This commit is contained in:
Andrew Dolgov
2013-03-27 16:14:27 +04:00
parent cedfac22e3
commit a413f53ebf
5 changed files with 161 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
define('SCHEMA_VERSION', 109);
define('LABEL_BASE_INDEX', -1024);
define('PLUGIN_FEED_BASE_INDEX', -128);
$fetch_last_error = false;
$pluginhost = false;
@@ -1430,6 +1431,20 @@
array_push($ret_arr, $cv);
}
global $pluginhost;
if ($pluginhost) {
$feeds = $pluginhost->get_feeds(-1);
foreach ($feeds as $feed) {
$cv = array("id" => PluginHost::pfeed_to_feed_id($feed['id']),
"counter" => $feed['sender']->get_unread($feed['id']));
array_push($ret_arr, $cv);
}
}
return $ret_arr;
}