summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-02 23:39:19 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-02 23:39:19 -0400
commit72c730bf5fb21f58589a836483585dabd6866520 (patch)
treea57dab8dcf88ce5a4f1172ba89663aa52947fdb8 /index.php
parentf8f6fd3d778fe95bac15e52747ff5b1f6461c136 (diff)
button to add feed; selection of a feed
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.php b/index.php
index 818426ea0..ca7e4f63f 100644
--- a/index.php
+++ b/index.php
@@ -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();
?>