X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=02e13e74fe665a7d6e00b05967096174bc7abaae;hb=f4b35e16a5582a42ed17a59a05182e9e2a52d571;hp=2423315cb9e0bdc61493c8dcaa588b14e49ea5aa;hpb=5466734477584e877187613fa0568dad17ed9c9f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 2423315cb9..02e13e74fe 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