From 4ee416b6a93728d66d3d04da85c82e7a960a3861 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 13 Jun 2024 13:35:51 +0000 Subject: [PATCH] Use OutputPage::setPageTitleMsg to set page title message Change-Id: I3b887050ae6979cbe825aab712540a71cb61a167 --- src/SpecialReplaceText.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SpecialReplaceText.php b/src/SpecialReplaceText.php index d76fa1c5..1f09f6e7 100644 --- a/src/SpecialReplaceText.php +++ b/src/SpecialReplaceText.php @@ -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; }