mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-31 18:11:29 +00:00
api: add getFeedTree
This commit is contained in:
@@ -87,6 +87,10 @@ class Pref_Feeds extends Handler_Protected {
|
||||
}
|
||||
|
||||
function getfeedtree() {
|
||||
print json_encode($this->makefeedtree());
|
||||
}
|
||||
|
||||
function makefeedtree() {
|
||||
|
||||
if ($_REQUEST['mode'] != 2)
|
||||
$search = $_SESSION["prefs_feed_search"];
|
||||
@@ -284,8 +288,7 @@ class Pref_Feeds extends Handler_Protected {
|
||||
$fl['items'] =& $root['items'];
|
||||
}
|
||||
|
||||
print json_encode($fl);
|
||||
return;
|
||||
return $fl;
|
||||
}
|
||||
|
||||
function catsortreset() {
|
||||
|
||||
Reference in New Issue
Block a user