summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-08-03 00:35:45 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-08-03 00:35:45 -0400
commita4502857ece08326168fd5b1170d9ff9f4c3be01 (patch)
tree2eaff7d4a705bcc7bee42a9f4eaf8bd2dec67f3c /index.php
parent9e1b6c31a8818f665ac58307931c6fd308e6c353 (diff)
small fixes on previous commits
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/index.php b/index.php
index 7a632c520..76d08a084 100644
--- a/index.php
+++ b/index.php
@@ -23,14 +23,17 @@ OCP\Util::addStyle('news','settings');
$l = OC_L10N::get('news');
-$foldermapper = new OC_News_FolderMapper(OCP\USER::getUser());
+$userid = OCP\USER::getUser();
+
+$foldermapper = new OC_News_FolderMapper($userid);
$allfeeds = $foldermapper->populate($l->t('Everything'), 0);
if ($allfeeds) {
$feedid = isset( $_GET['feedid'] ) ? $_GET['feedid'] : null;
if ($feedid == null) {
-
+ $feedmapper = new OC_News_FeedMapper(OCP\USER::getUser($userid));
+ $feedid = $feedmapper->mostRecent();
}
}
else {