summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-21 13:50:52 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-21 13:50:52 -0400
commit5ab51aa17656548a047ebe8d7aee74ce1f89c020 (patch)
treeb32dadcad73840097fb2a2cb1b477a4015665526 /templates
parent912374165b89b0e6aae71d6fd0930176da259fbf (diff)
makes previous commit more logical
Diffstat (limited to 'templates')
-rw-r--r--templates/part.feeds.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/part.feeds.php b/templates/part.feeds.php
index db7852efc..dd6a93c5f 100644
--- a/templates/part.feeds.php
+++ b/templates/part.feeds.php
@@ -17,6 +17,9 @@
}
elseif ($child instanceOf OC_News_Feed) { //onhover $(element).attr('id', 'newID');
$favicon = $child->getFavicon();
+ if ($favicon == null) {
+ $favicon = OCP\Util::imagePath('news', 'rss.svg');
+ }
echo '<li class="feeds_list" data-id="' . $child->getId() . '"><a href="' . OCP\Util::linkTo('news', 'index.php'). '?feedid=' . $child->getId() . '" style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;">' . $child->getTitle() .'</a>';
countUnreadItems($child->getId());
echo '<button class="svg action" id="feeds_delete" onClick="(News.Feed.delete(' . $child->getId(). '))" title="' . $l->t('Delete feed') . '"></button>';