diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-02 23:39:19 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-02 23:39:19 -0400 |
commit | 72c730bf5fb21f58589a836483585dabd6866520 (patch) | |
tree | a57dab8dcf88ce5a4f1172ba89663aa52947fdb8 /index.php | |
parent | f8f6fd3d778fe95bac15e52747ff5b1f6461c136 (diff) |
button to add feed; selection of a feed
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -11,9 +11,6 @@ * */ -// load SimplePie library -require_once('3rdparty/SimplePie/SimplePieAutoloader.php'); - // Check if we are a user OCP\User::checkLoggedIn(); @@ -21,14 +18,17 @@ OCP\App::checkAppEnabled('news'); OCP\App::setActiveNavigationEntry('news'); OCP\Util::addscript('news','news'); -OCP\Util::addStyle('news', 'news'); +OCP\Util::addStyle('news','news'); $foldermapper = new OC_News_FolderMapper(OCP\USER::getUser()); $allfeeds = $foldermapper->root(); +$feedid = isset( $_GET['feedid'] ) ? $_GET['feedid'] : null; + $tmpl = new OCP\Template( 'news', 'main', 'user' ); $tmpl->assign('allfeeds', $allfeeds); +$tmpl->assign('feedid', $feedid); $tmpl->printPage(); ?> |