summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php20
1 files changed, 5 insertions, 15 deletions
diff --git a/index.php b/index.php
index 064b1167c..82419fa90 100644
--- a/index.php
+++ b/index.php
@@ -4,20 +4,10 @@
* ownCloud - News app
*
* @author Alessandro Cosentino
-* @copyright 2012 Alessandro Cosentino cosenal@gmail.com
+* Copyright (c) 2012 - Alessandro Cosentino <cosenal@gmail.com>
*
-* This library is free software; you can redistribute it and/or
-* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
-* License as published by the Free Software Foundation; either
-* version 3 of the License, or any later version.
-*
-* This library is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this library. If not, see <http://www.gnu.org/licenses/>.
+* This file is licensed under the Affero General Public License version 3 or later.
+* See the COPYING-README file
*
*/
@@ -37,10 +27,10 @@ OCP\App::setActiveNavigationEntry('news');
//OCP\Util::addscript('news','news');
OCP\Util::addStyle('news', 'news');
-$foldermapper = new OC_News_FolderMapper();
+$foldermapper = new OC_News_FolderMapper(OCP\USER::getUser());
//this is the root folder, which contains all sub-folders and feeds
-$allfeeds = null;
+$allfeeds = $foldermapper->root();
$tmpl = new OCP\Template( 'news', 'main', 'user' );
$tmpl->assign('allfeeds', $allfeeds);