diff options
| author | 2013-09-14 22:12:44 +0200 | |
|---|---|---|
| committer | 2013-09-14 22:12:44 +0200 | |
| commit | 6f8b260ebf1768fdf567a03989556b50c9cbda25 (patch) | |
| tree | 28b6e1545518adfa216396aa8a09a4de8d736629 /app/views/helpers/view/normal_view.phtml | |
| parent | 6525779349ba915e17ef1846948c861bfa36425e (diff) | |
| parent | e19695e14bdf3ea1baf04141f346060751eb1789 (diff) | |
Merge branch 'Alkarex-SqlOptimisation' into sql-optimisation
Diffstat (limited to 'app/views/helpers/view/normal_view.phtml')
| -rw-r--r-- | app/views/helpers/view/normal_view.phtml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/helpers/view/normal_view.phtml b/app/views/helpers/view/normal_view.phtml index 43e5c0cd2..1ebdb461e 100644 --- a/app/views/helpers/view/normal_view.phtml +++ b/app/views/helpers/view/normal_view.phtml @@ -53,7 +53,10 @@ if (isset ($this->entryPaginator) && !$this->entryPaginator->isEmpty ()) { <?php } ?> </li> <?php } ?> - <?php $feed = $item->feed (true); ?> + <?php + $feed = HelperCategory::findFeed($this->cat_aside, $item->feed ()); //We most likely already have the feed object in cache + if (empty($feed)) $feed = $item->feed (true); + ?> <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 title"><a target="_blank" href="<?php echo $item->link (); ?>"><?php echo $item->title (); ?></a></li> <li class="item date"><?php echo $item->date (); ?></li> |
