mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-27 16:10:15 +00:00
Use OutputPage::setPageTitleMsg to set page title message
Change-Id: I3b887050ae6979cbe825aab712540a71cb61a167
This commit is contained in:
parent
cd62fad03b
commit
4ee416b6a9
|
@ -184,7 +184,7 @@ class SpecialReplaceText extends SpecialPage {
|
|||
|
||||
if ( $this->readOnlyMode->isReadOnly() ) {
|
||||
$permissionErrors = [ [ 'readonlytext', [ $this->readOnlyMode->getReason() ] ] ];
|
||||
$out->setPageTitle( $this->msg( 'badaccess' )->text() );
|
||||
$out->setPageTitleMsg( $this->msg( 'badaccess' ) );
|
||||
$out->addWikiTextAsInterface( $out->formatPermissionsErrorMessage( $permissionErrors, 'replacetext' ) );
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue