A free, self-hostable news aggregator…
No warning for muted feeds (#6114)
Alexandre Alapetite3eb3574b1328
diff --git a/app/Models/Category.php b/app/Models/Category.phpindex 230431311..1f5b4dc61 100644--- a/app/Models/Category.php+++ b/app/Models/Category.php@@ -40,7 +40,7 @@ class FreshRSS_Category extends Minz_Model {$feed->_category($this);$this->nbFeeds++;$this->nbNotRead += $feed->nbNotRead();- $this->hasFeedsWithError |= $feed->inError();+ $this->hasFeedsWithError |= ($feed->inError() && !$feed->mute());}}}@@ -108,7 +108,7 @@ class FreshRSS_Category extends Minz_Model {foreach ($this->feeds as $feed) {$this->nbFeeds++;$this->nbNotRead += $feed->nbNotRead();- $this->hasFeedsWithError |= $feed->inError();+ $this->hasFeedsWithError |= ($feed->inError() && !$feed->mute());}$this->sortFeeds();diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtmlindex 8dca19b41..304c10d04 100644--- a/app/layout/aside_feed.phtml+++ b/app/layout/aside_feed.phtml@@ -109,7 +109,7 @@$error_class = '';$error_title = '';- if ($feed->inError()) {+ if ($feed->inError() && !$feed->mute()) {$error_class = ' error';$error_title = _t('sub.feed.error');}diff --git a/app/views/index/global.phtml b/app/views/index/global.phtmlindex 6a46ec2ca..011b66a49 100644--- a/app/views/index/global.phtml+++ b/app/views/index/global.phtml@@ -45,7 +45,7 @@$error_class = '';$error_title = '';- if ($feed->inError()) {+ if ($feed->inError() && !$feed->mute()) {$error_class = ' error';$error_title = _t('sub.feed.error');}diff --git a/app/views/stats/idle.phtml b/app/views/stats/idle.phtmlindex 5390a00a3..c5f9a1e6b 100644--- a/app/views/stats/idle.phtml+++ b/app/views/stats/idle.phtml@@ -29,7 +29,7 @@$error_class = '';$error_title = '';- if ($feed == null || $feed->inError()) {+ if ($feed === null || $feed->inError()) {$error_class = ' error';$error_title = _t('sub.feed.error');}