A free, self-hostable news aggregator…
Corrige warnings validation flux RSS généré
Marien Fressinaud846078e9852c
diff --git a/app/controllers/indexController.php b/app/controllers/indexController.phpindex 8770de89a..0e7ba586b 100755--- a/app/controllers/indexController.php+++ b/app/controllers/indexController.php@@ -42,6 +42,7 @@ class indexController extends ActionController {if ($output == 'rss') {// no layout for RSS output$this->view->_useLayout (false);+ header("Content-type: application/xml");} else {if(!$output) {$output = $this->view->conf->viewMode();diff --git a/app/views/helpers/view/rss_view.phtml b/app/views/helpers/view/rss_view.phtmlindex 7b97562bc..9358ef2a5 100755--- a/app/views/helpers/view/rss_view.phtml+++ b/app/views/helpers/view/rss_view.phtml@@ -6,7 +6,7 @@<description><?php echo Translate::t ('rss_feeds_of', $this->rss_title); ?></description><pubDate><?php echo date('D, d M Y H:i:s O'); ?></pubDate><lastBuildDate><?php echo gmdate('D, d M Y H:i:s'); ?> GMT</lastBuildDate>- <atom:link href="<?php echo Url::display (array('params' => array('output' => 'rss')), 'html', true); ?>" rel="self" type="application/rss+xml" />+ <atom:link href="<?php echo Url::display ($this->rss_url, 'html', true); ?>" rel="self" type="application/rss+xml" /><?php$items = $this->entryPaginator->items ();foreach ($items as $item) {