1
0
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:
Andrew Dolgov
2013-03-28 11:04:15 +04:00
parent f9432f2630
commit 0bb5833beb
3 changed files with 21 additions and 2 deletions

View File

@@ -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() {