A free, self-hostable news aggregator…
Fix issue #91 : flux en erreur repasse normal
Marien Fressinaud32499c0b3e51
diff --git a/app/i18n/en.php b/app/i18n/en.phpindex 4dbfde715..209bbcd87 100644--- a/app/i18n/en.php+++ b/app/i18n/en.php@@ -119,7 +119,7 @@ return array ('or' => 'or','informations' => 'Informations',- 'feed_in_error' => 'This feed has encountered a problem. Please verify that it is always reachable.',+ 'feed_in_error' => 'This feed has encountered a problem. Please verify that it is always reachable then actualize it.','website_url' => 'Website URL','feed_url' => 'Feed URL','number_articles' => 'Number of articles',diff --git a/app/i18n/fr.php b/app/i18n/fr.phpindex 7a58b984c..172f06953 100644--- a/app/i18n/fr.php+++ b/app/i18n/fr.php@@ -119,7 +119,7 @@ return array ('or' => 'ou','informations' => 'Informations',- 'feed_in_error' => 'Ce flux a rencontré un problème. Veuillez vérifier qu\'il est toujours accessible.',+ 'feed_in_error' => 'Ce flux a rencontré un problème. Veuillez vérifier qu\'il est toujours accessible puis actualisez-le.','website_url' => 'URL du site','feed_url' => 'URL du flux','number_articles' => 'Nombre d\'articles',diff --git a/app/models/Feed.php b/app/models/Feed.phpindex 15568d06a..4c6a3d229 100644--- a/app/models/Feed.php+++ b/app/models/Feed.php@@ -292,7 +292,7 @@ class FeedDAO extends Model_pdo {}public function updateLastUpdate ($id) {- $sql = 'UPDATE feed SET lastUpdate=? WHERE id=?';+ $sql = 'UPDATE feed SET lastUpdate=?, error=0 WHERE id=?';$stm = $this->bd->prepare ($sql);$values = array (diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtmlindex 650da5641..ec2ff3bdb 100644--- a/app/views/configure/feed.phtml+++ b/app/views/configure/feed.phtml@@ -31,6 +31,14 @@<span class="control"><a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo $this->flux->url (); ?></a></span></div></div>+ <div class="form-group">+ <label class="group-name"></label>+ <div class="group-controls">+ <a class="btn" href="<?php echo _url ('feed', 'actualize', 'id', $this->flux->id ()); ?>">+ <i class="icon i_refresh"></i> <?php echo Translate::t('actualize'); ?>+ </a>+ </div>+ </div><div class="form-group"><label class="group-name"><?php echo Translate::t ('number_articles'); ?></label><div class="group-controls">