Pārlūkot izejas kodu

Corrige warnings validation flux RSS généré

Marien Fressinaud 12 gadi atpakaļ
vecāks
revīzija
846078e985

+ 1 - 0
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();

+ 1 - 1
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) {