X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FEditPage.php;h=f2403fe22244003e5a006ee8ed5154ec174fdc24;hb=9871bca6dff5bec3859a3c9b00631567d87e1ffa;hp=02093fffff3d4246f59bb81abb7ea9137b360812;hpb=f7acecbdbd2a45ee34f5f5653377877c7b425021;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index 02093fffff..f2403fe222 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:UserLogin/signup|returnto={{FULLPAGENAMEE}}}}' ] + SpecialPage::getTitleFor( 'CreateAccount' )->getFullURL( [ + 'returnto' => $this->getTitle()->getPrefixedDBkey() + ] ) + ] ); } else { $wgOut->wrapWikiMsg( "
\n$1
", @@ -3496,6 +3501,8 @@ HTML $cancelParams = []; if ( !$this->isConflict && $this->oldid > 0 ) { $cancelParams['oldid'] = $this->oldid; + } elseif ( $this->getContextTitle()->isRedirect() ) { + $cancelParams['redirect'] = 'no'; } $attrs = [ 'id' => 'mw-editform-cancel' ]; @@ -3860,7 +3867,7 @@ HTML ], $showSignature ? [ 'id' => 'mw-editbutton-signature', - 'open' => '--~~~~', + 'open' => wfMessage( 'sig-text', '~~~~' )->inContentLanguage()->text(), 'close' => '', 'sample' => '', 'tip' => wfMessage( 'sig_tip' )->text(),