From 75d95e47b467363ecdcbb6fd334c2a22b0d715ad Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 19 May 2016 20:36:02 +0000 Subject: [PATCH] EditPage: Use localized special page links for 'anoneditwarning' This avoids a redirect from the generic special page to the localized special page. Change-Id: Ica7995839b67a809dd9dcc12298209bee300e54b --- includes/EditPage.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 0f529832da..8acd036039 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2833,9 +2833,14 @@ class EditPage { "
\n$1\n
", [ 'anoneditwarning', // Log-in link - '{{fullurl:Special:UserLogin|returnto={{FULLPAGENAMEE}}}}', + SpecialPage::getTitleFor( 'Userlogin' )->getFullURL( [ + 'returnto' => $this->getTitle()->getPrefixedDBkey() + ] ), // Sign-up link - '{{fullurl:Special:CreateAccount|returnto={{FULLPAGENAMEE}}}}' ] + SpecialPage::getTitleFor( 'CreateAccount' )->getFullURL( [ + 'returnto' => $this->getTitle()->getPrefixedDBkey() + ] ) + ] ); } else { $wgOut->wrapWikiMsg( "
\n$1
", -- 2.20.1