From: Fomafix Date: Thu, 19 May 2016 20:36:02 +0000 (+0000) Subject: EditPage: Use localized special page links for 'anoneditwarning' X-Git-Tag: 1.31.0-rc.0~6875 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=75d95e47b467363ecdcbb6fd334c2a22b0d715ad;p=lhc%2Fweb%2Fwiklou.git 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 --- 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
",