From 6d983b645eedc064f44b31bad260c03b6645886a Mon Sep 17 00:00:00 2001 From: Cindy Cicalese Date: Wed, 18 Apr 2018 01:36:04 +0000 Subject: [PATCH] Correctly localize special page name. Change-Id: I05b337358b0f205dd11cf05491303f4b9068b242 --- src/SpecialReplaceText.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SpecialReplaceText.php b/src/SpecialReplaceText.php index cf15c87c..cd930002 100644 --- a/src/SpecialReplaceText.php +++ b/src/SpecialReplaceText.php @@ -464,7 +464,7 @@ class SpecialReplaceText extends SpecialPage { // @todo FIXME: raw html messages $category_search_label = $this->msg( 'replacetext_categorysearch' )->escaped(); $prefix_search_label = $this->msg( 'replacetext_prefixsearch' )->escaped(); - $rcPage = Title::makeTitleSafe( NS_SPECIAL, 'RecentChanges' ); + $rcPage = SpecialPage::getTitleFor( 'Recentchanges' ); $rcPageName = $rcPage->getPrefixedText(); $out->addHTML( "
\n" . @@ -608,7 +608,7 @@ class SpecialReplaceText extends SpecialPage { } $out->addHTML( '
' ); $out->addWikiMsg( 'replacetext_formovedpages' ); - $rcPage = Title::makeTitleSafe( NS_SPECIAL, 'RecentChanges' ); + $rcPage = SpecialPage::getTitleFor( 'Recentchanges' ); $rcPageName = $rcPage->getPrefixedText(); $out->addHTML( Xml::checkLabel(