X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=61a1ef2d870fff4f843a8dd14b70ed612412429d;hb=792b23d7103b78388e0ccd79d08df14a183945e1;hp=2423315cb9e0bdc61493c8dcaa588b14e49ea5aa;hpb=b9333ae6557b86e4b074025c43e77e745610b345;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 2423315cb9..61a1ef2d87 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -2847,16 +2847,18 @@ class OutputPage extends ContextSource { $query['returntoquery'] = wfArrayToCgi( $returntoquery ); } } + $title = SpecialPage::getTitleFor( 'Userlogin' ); $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); + $loginUrl = $title->getLinkURL( $query, false, PROTO_RELATIVE ); $loginLink = $linkRenderer->makeKnownLink( - SpecialPage::getTitleFor( 'Userlogin' ), + $title, $this->msg( 'loginreqlink' )->text(), [], $query ); $this->prepareErrorPage( $this->msg( 'loginreqtitle' ) ); - $this->addHTML( $this->msg( $msg )->rawParams( $loginLink )->parse() ); + $this->addHTML( $this->msg( $msg )->rawParams( $loginLink )->params( $loginUrl )->parse() ); # Don't return to a page the user can't read otherwise # we'll end up in a pointless loop @@ -4132,12 +4134,12 @@ class OutputPage extends ContextSource { * * For example: * - * $wgOut->wrapWikiMsg( "
\n$1\n
", 'some-error' ); + * $wgOut->wrapWikiMsg( "
\n$1\n
", 'some-error' ); * * Is equivalent to: * - * $wgOut->addWikiTextAsInterface( "
\n" - * . wfMessage( 'some-error' )->plain() . "\n
" ); + * $wgOut->addWikiTextAsInterface( "
\n" + * . wfMessage( 'some-error' )->plain() . "\n
" ); * * The newline after the opening div is needed in some wikitext. See T21226. *