From 523f5304be09223b3b57a9df0452123e90f627e3 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 13 Oct 2012 03:18:58 +0200 Subject: fixed bug that wouldnt highlight last viewed feed/folder --- templates/part.feeds.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'templates/part.feeds.php') diff --git a/templates/part.feeds.php b/templates/part.feeds.php index e766fb033..12020fa4a 100644 --- a/templates/part.feeds.php +++ b/templates/part.feeds.php @@ -1,13 +1,16 @@ assign('folder', $collection); + $tmpl_folder->assign('lastViewedFeedId', $lastViewedFeedId); + $tmpl_folder->assign('lastViewedFeedType', $lastViewedFeedType); $tmpl_folder->printpage(); - print_collection_list($collection->getChildren()); + print_collection_list($collection->getChildren(), $lastViewedFeedId, + $lastViewedFeedType); echo ''; } elseif ($collection instanceOf OCA\News\Feed) { //onhover $(element).attr('id', 'newID'); @@ -22,6 +25,8 @@ function print_collection_list($list) { $tmpl_feed = new OCP\Template("news", "part.listfeed"); $tmpl_feed->assign('feed', $collection); $tmpl_feed->assign('unreadItemsCount',$counter); + $tmpl_feed->assign('lastViewedFeedId', $lastViewedFeedId); + $tmpl_feed->assign('lastViewedFeedType', $lastViewedFeedType); $tmpl_feed->printpage(); } else { @@ -34,7 +39,7 @@ function print_collection_list($list) { $allfeeds = isset($_['allfeeds']) ? $_['allfeeds'] : ''; $lastViewedFeedId = $_['lastViewedFeedId']; $lastViewedFeedType = $_['lastViewedFeedType']; -$starredCount = $_['starredCount'] +$starredCount = $_['starredCount']; ?> @@ -50,4 +55,4 @@ $starredCount = $_['starredCount']