From: Alexandre Emsenhuber Date: Tue, 20 Dec 2011 09:12:20 +0000 (+0000) Subject: Fix for r102116: link feed to Special:Recentchanges, not current page X-Git-Tag: 1.31.0-rc.0~25875 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=148549a687fc2ddae24f6c3c5c89bb1b04ae7bc6;p=lhc%2Fweb%2Fwiklou.git Fix for r102116: link feed to Special:Recentchanges, not current page --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 163f2b1750..ffe36db6c1 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -3082,10 +3082,11 @@ $templates ); } } elseif ( !$this->getTitle()->isSpecial( 'Recentchanges' ) ) { + $rctitle = SpecialPage::getTitleFor( 'Recentchanges' ); foreach ( $wgAdvertisedFeedTypes as $format ) { $tags[] = $this->feedLink( $format, - $this->getTitle()->getLocalURL( "feed={$format}" ), + $rctitle->getLocalURL( "feed={$format}" ), $this->msg( "site-{$format}-feed", $wgSitename )->text() # For grep: 'site-rss-feed', 'site-atom-feed'. ); }