瀏覽代碼

URLs absolues dans la vue RSS

Les URLs ne sont plus relatives
Fix issue #253
Marien Fressinaud 12 年之前
父節點
當前提交
d847adbe17
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/views/helpers/view/rss_view.phtml

+ 2 - 2
app/views/helpers/view/rss_view.phtml

@@ -2,11 +2,11 @@
 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
 	<channel>
 		<title><?php echo $this->rss_title; ?></title>
-		<link><?php echo Url::display(); ?></link>
+		<link><?php echo Url::display(null, 'html', true); ?></link>
 		<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 ('index', 'index', 'output', 'rss'); ?>" rel="self" type="application/rss+xml" />
+		<atom:link href="<?php echo Url::display (array('params' => array('output' => 'rss')), 'html', true); ?>" rel="self" type="application/rss+xml" />
 <?php
 $items = $this->entryPaginator->items ();
 foreach ($items as $item) {