diff options
| author | 2013-11-09 22:30:19 +0100 | |
|---|---|---|
| committer | 2013-11-09 22:30:19 +0100 | |
| commit | 846078e9852c21d8ab383c165f82cb146ba6516a (patch) | |
| tree | 63535fa16318ff5f890fb28317362e4665bc7207 /app | |
| parent | d847adbe1710691d2360a591d17ba9350c97672a (diff) | |
Corrige warnings validation flux RSS généré
Diffstat (limited to 'app')
| -rwxr-xr-x | app/controllers/indexController.php | 1 | ||||
| -rwxr-xr-x | app/views/helpers/view/rss_view.phtml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/indexController.php b/app/controllers/indexController.php index 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.phtml index 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) { |
