Fix #2393: incorrect MIME type for atom feeds
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 15 Aug 2005 21:39:30 +0000 (21:39 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 15 Aug 2005 21:39:30 +0000 (21:39 +0000)
ref: http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.7

includes/OutputPage.php

index df6ff66..b549c6d 100644 (file)
@@ -880,7 +880,7 @@ class OutputPage {
                        $link = $wgRequest->escapeAppendQuery( 'feed=rss' );
                        $ret .= "<link rel='alternate' type='application/rss+xml' title='RSS 2.0' href='$link' />\n";
                        $link = $wgRequest->escapeAppendQuery( 'feed=atom' );
-                       $ret .= "<link rel='alternate' type='application/rss+atom' title='Atom 0.3' href='$link' />\n";
+                       $ret .= "<link rel='alternate' type='application/atom+xml' title='Atom 0.3' href='$link' />\n";
                }
 
                return $ret;