diff options
author | Gregor Tätzner <gregor@freenet.de> | 2012-07-18 21:39:53 +0200 |
---|---|---|
committer | Gregor Tätzner <gregor@freenet.de> | 2012-07-18 21:39:53 +0200 |
commit | c5f03e0ca599b017849d02cb2e307475be1c5409 (patch) | |
tree | 471acc2aeb4e84c67dc8049237b6f51fe86354e3 /templates | |
parent | 4ce35659094ed4df43ad41a198a2944aeced9784 (diff) |
Refresh feed list when you a feed
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.feeds.php | 6 | ||||
-rw-r--r-- | templates/populateroot.php | 18 |
2 files changed, 21 insertions, 3 deletions
diff --git a/templates/part.feeds.php b/templates/part.feeds.php index d8e4a6b01..cee670063 100644 --- a/templates/part.feeds.php +++ b/templates/part.feeds.php @@ -27,7 +27,7 @@ } echo '</ul></li></ul>'; } - - $this->inc("part.itemcounter"); - print_folder($_['allfeeds'], 0); + include("populateroot.php"); + include("part.itemcounter.php"); + print_folder($allfeeds, 0); ?>
\ No newline at end of file diff --git a/templates/populateroot.php b/templates/populateroot.php new file mode 100644 index 000000000..a408c25ec --- /dev/null +++ b/templates/populateroot.php @@ -0,0 +1,18 @@ +<?php + +OCP\JSON::checkLoggedIn(); +OCP\JSON::checkAppEnabled('news'); + +$foldermapper = new OC_News_FolderMapper(OCP\USER::getUser()); + +$allfeeds = $foldermapper->populate('Everything', 0); + +if ($allfeeds) { + $feedid = isset( $_GET['feedid'] ) ? $_GET['feedid'] : null; + if ($feedid == null) { + + } +} +else { + $feedid = 0; +} |