* parseAsInterface() if $interface is true.
*/
public function parse( $text, $linestart = true, $interface = false, $language = null ) {
+ wfDeprecated( __METHOD__, '1.33' );
return $this->parseInternal(
$text, $this->getTitle(), $linestart, /*tidy*/false, $interface, $language
)->getText( [
* Parser::stripOuterParagraph($outputPage->parseAsContent(...)).
*/
public function parseInline( $text, $linestart = true, $interface = false ) {
+ wfDeprecated( __METHOD__, '1.33' );
$parsed = $this->parseInternal(
$text, $this->getTitle(), $linestart, /*tidy*/false, $interface, /*language*/null
)->getText( [
$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
* then the warning is a bit more obvious. If the lag is
* lower than $wgSlaveLagWarning, then no warning is shown.
*
- * @param int $lag Slave lag
+ * @param int $lag Replica lag
*/
public function showLagWarning( $lag ) {
$config = $this->getConfig();