Quellcode durchsuchen

Corrige warnings validation flux RSS généré

Marien Fressinaud vor 12 Jahren
Ursprung
Commit
846078e985
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 1 0
      app/controllers/indexController.php
  2. 1 1
      app/views/helpers/view/rss_view.phtml

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