From 1bed037383a51e372b4fa5959c0a88873d94342c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Sat, 17 Feb 2024 03:01:13 +0100 Subject: [PATCH] Use OutputPage::setPageTitleMsg() instead of ::setPageTitle() Bug: T343994 Change-Id: I406174f9fe3b269f65dac4a15629e12d2abd6338 --- includes/Hooks.php | 2 +- includes/SpecialCollabPad.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Hooks.php b/includes/Hooks.php index afb2555c3a..fc81df910d 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -435,7 +435,7 @@ class Hooks implements $out = $article->getContext()->getOutput(); $titleMsg = $title->exists() ? 'editing' : 'creating'; - $out->setPageTitle( wfMessage( $titleMsg, $title->getPrefixedText() ) ); + $out->setPageTitleMsg( wfMessage( $titleMsg, $title->getPrefixedText() ) ); $out->showPendingTakeover( $url, 'visualeditor-toload', wfExpandUrl( $url ) ); $out->setRevisionId( $req->getInt( 'oldid', $article->getRevIdFetched() ) ); diff --git a/includes/SpecialCollabPad.php b/includes/SpecialCollabPad.php index 73b5c8be68..ac42f6c5d4 100644 --- a/includes/SpecialCollabPad.php +++ b/includes/SpecialCollabPad.php @@ -137,7 +137,7 @@ class SpecialCollabPad extends SpecialPage { if ( $subPage ) { $title = Title::newFromText( $subPage ); - $output->setPageTitle( $this->msg( 'collabpad-doctitle', $title->getPrefixedText() ) ); + $output->setPageTitleMsg( $this->msg( 'collabpad-doctitle', $title->getPrefixedText() ) ); $form->addClasses( [ 'oo-ui-element-hidden' ] ); } else { // Scripts only, styles already added above