diff options
Diffstat (limited to 'templates/part.listfeed.php')
-rw-r--r-- | templates/part.listfeed.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php index 7d5c91afd..8b64a3846 100644 --- a/templates/part.listfeed.php +++ b/templates/part.listfeed.php @@ -3,14 +3,14 @@ $l = new OC_l10n('news'); $feed = isset($_['feed']) ? $_['feed'] : null; -$unreadItems = isset($_['unreadItems']) ? $_['unreadItems'] : null; +$unreadItemsCount = isset($_['unreadItemsCount']) ? $_['unreadItemsCount'] : null; $favicon = $feed->getFavicon(); if ($favicon == null) { $favicon = OCP\Util::imagePath('news', 'rss.svg'); } -if($unreadItems == 0){ +if($unreadItemsCount == 0){ $allReadClass = 'all_read'; } else { $allReadClass = ''; @@ -18,7 +18,7 @@ if($unreadItems == 0){ echo '<li class="feed" data-id="' . $feed->getId() . '">'; echo '<a href="#" style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;" class="' . $allReadClass . '">' . $feed->getTitle() .'</a>'; - echo '<span class="unreaditemcounter ' . $allReadClass . '">' . $unreadItems . '</span>'; + echo '<span class="unreaditemcounter ' . $allReadClass . '">' . $unreadItemsCount . '</span>'; echo '<button class="svg action feeds_edit" title="' . $l->t('Edit feed') . '"></button>'; echo '<button class="svg action feeds_delete" onClick="(News.Feed.delete(' . $feed->getId(). '))" title="' . $l->t('Delete feed') . '"></button>'; echo '</li>'; |