r106773 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106772‎ | r106773 | r106774 >
Date:09:12, 20 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Fix for r102116: link feed to Special:Recentchanges, not current page
Modified paths:
  • /trunk/phase3/includes/OutputPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/OutputPage.php
@@ -3082,10 +3082,11 @@
30833083 );
30843084 }
30853085 } elseif ( !$this->getTitle()->isSpecial( 'Recentchanges' ) ) {
 3086+ $rctitle = SpecialPage::getTitleFor( 'Recentchanges' );
30863087 foreach ( $wgAdvertisedFeedTypes as $format ) {
30873088 $tags[] = $this->feedLink(
30883089 $format,
3089 - $this->getTitle()->getLocalURL( "feed={$format}" ),
 3090+ $rctitle->getLocalURL( "feed={$format}" ),
30903091 $this->msg( "site-{$format}-feed", $wgSitename )->text() # For grep: 'site-rss-feed', 'site-atom-feed'.
30913092 );
30923093 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r102116* Only call Title::getPageLanguage() when necessary, i.e. after "!$wgDisableL...ialex20:25, 5 November 2011

Status & tagging log