aboutsummaryrefslogtreecommitdiff
path: root/app/views/index/normal.phtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/index/normal.phtml')
-rw-r--r--app/views/index/normal.phtml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtml
index fd2289365..f2e1c5012 100644
--- a/app/views/index/normal.phtml
+++ b/app/views/index/normal.phtml
@@ -25,6 +25,15 @@ if (!empty($this->entries)) {
continue;
}
+ // We most likely already have the feed object in cache
+ $this->feed = FreshRSS_CategoryDAO::findFeed($this->categories, $this->entry->feed());
+ if ($this->feed == null) {
+ $this->feed = $this->entry->feed(true);
+ if ($this->feed == null) {
+ $this->feed = FreshRSS_Feed::example();
+ }
+ }
+
if ($display_today && $this->entry->isDay(FreshRSS_Days::TODAY, $today)) {
?><div class="day" id="day_today"><?php
echo _t('today');