diff options
| author | 2014-12-17 21:24:49 +0100 | |
|---|---|---|
| committer | 2014-12-17 21:25:20 +0100 | |
| commit | 930026df2159b027bc035f4ed15c39a43eb0e9fe (patch) | |
| tree | 869efcd322b4bea510de7644508c86ce836dc011 /app/views/helpers/index/normal/entry_header.phtml | |
| parent | 76358846abe2eba95668d66d3847cbdfe3f8bcdc (diff) | |
Fix bug with new file organisation
entry_bottom.phtml didn't find $feed variable. It's fixed now.
Diffstat (limited to 'app/views/helpers/index/normal/entry_header.phtml')
| -rw-r--r-- | app/views/helpers/index/normal/entry_header.phtml | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/views/helpers/index/normal/entry_header.phtml b/app/views/helpers/index/normal/entry_header.phtml index 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 } ?> |
