From 9cc4ff546e80b66295b31f6d6c712f48ae8c73e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Sat, 17 Feb 2024 02:57:11 +0100 Subject: [PATCH] Use OutputPage::setPageTitleMsg() instead of ::setPageTitle() Bug: T343994 Change-Id: I71d1ffabd3fca96c6a3b2a9f1647edf9e675e332 --- includes/Special/SpecialGadgets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Special/SpecialGadgets.php b/includes/Special/SpecialGadgets.php index b73c97aa..9c2a5ce4 100644 --- a/includes/Special/SpecialGadgets.php +++ b/includes/Special/SpecialGadgets.php @@ -80,7 +80,7 @@ class SpecialGadgets extends SpecialPage { $output = $this->getOutput(); $this->setHeaders(); $this->addHelpLink( 'Extension:Gadgets' ); - $output->setPageTitle( $this->msg( 'gadgets-title' ) ); + $output->setPageTitleMsg( $this->msg( 'gadgets-title' ) ); $output->addWikiMsg( 'gadgets-pagetext' ); $gadgets = $this->gadgetRepo->getStructuredList(); @@ -388,7 +388,7 @@ class SpecialGadgets extends SpecialPage { } $this->setHeaders(); - $output->setPageTitle( $this->msg( 'gadgets-export-title' ) ); + $output->setPageTitleMsg( $this->msg( 'gadgets-export-title' ) ); $output->addWikiMsg( 'gadgets-export-text', $gadget, $g->getDefinition() ); $exportList = "MediaWiki:gadget-$gadget\n";