A free, self-hostable news aggregator…
Fix bug with new file organisation
Marien Fressinaud930026df2159
diff --git a/app/views/helpers/index/normal/entry_bottom.phtml b/app/views/helpers/index/normal/entry_bottom.phtmlindex 704644f99..e1961e2aa 100644--- a/app/views/helpers/index/normal/entry_bottom.phtml+++ b/app/views/helpers/index/normal/entry_bottom.phtml@@ -36,7 +36,7 @@<li class="item"><?phpif ($bottomline_sharing) {$link = urlencode($this->entry->link());- $title = urlencode($this->entry->title() . ' · ' . $feed->name());+ $title = urlencode($this->entry->title() . ' · ' . $this->feed->name());?><div class="dropdown"><div id="dropdown-share-<?php echo $this->entry->id();?>" class="dropdown-target"></div><a class="dropdown-toggle" href="#dropdown-share-<?php echo $this->entry->id();?>">@@ -48,7 +48,7 @@<li class="dropdown-close"><a href="#close">❌</a></li><?php foreach ($sharing as $share) :?><li class="item share">- <a target="_blank" href="<?php echo FreshRSS_Share::generateUrl(FreshRSS_Context::$conf->shares, $share, $this->entry->link(), $this->entry->title() . ' . ' . $feed->name())?>">+ <a target="_blank" href="<?php echo FreshRSS_Share::generateUrl(FreshRSS_Context::$conf->shares, $share, $this->entry->link(), $this->entry->title() . ' . ' . $this->feed->name())?>"><?php echo _t($share['name']);?></a></li>diff --git a/app/views/helpers/index/normal/entry_header.phtml b/app/views/helpers/index/normal/entry_header.phtmlindex b751b884f..3d8b089b9 100644--- a/app/views/helpers/index/normal/entry_header.phtml+++ b/app/views/helpers/index/normal/entry_header.phtml@@ -26,14 +26,7 @@?></li><?php}}- $feed = FreshRSS_CategoryDAO::findFeed($this->categories, $this->entry->feed()); //We most likely already have the feed object in cache- if ($feed == null) {- $feed = $this->entry->feed(true);- if ($feed == null) {- $feed = FreshRSS_Feed::example();- }- }- ?><li class="item website"><a href="<?php echo _url('index', 'index', 'get', 'f_' . $feed->id()); ?>"><img class="favicon" src="<?php echo $feed->favicon(); ?>" alt="✇" /> <span><?php echo $feed->name(); ?></span></a></li>+ ?><li class="item website"><a href="<?php echo _url('index', 'index', 'get', 'f_' . $this->feed->id()); ?>"><img class="favicon" src="<?php echo $this->feed->favicon(); ?>" alt="✇" /> <span><?php echo $this->feed->name(); ?></span></a></li><li class="item title"><a target="_blank" href="<?php echo $this->entry->link(); ?>"><?php echo $this->entry->title(); ?></a></li><?php if ($topline_date) { ?><li class="item date"><?php echo $this->entry->date(); ?> </li><?php } ?><?php if ($topline_link) { ?><li class="item link"><a target="_blank" href="<?php echo $this->entry->link(); ?>"><?php echo _i('link'); ?></a></li><?php } ?>diff --git a/app/views/index/normal.phtml b/app/views/index/normal.phtmlindex 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"><?phpecho _t('today');