From 1349c099c608d4c2f629bb33d5b61487097988b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Sat, 17 Feb 2024 02:55:53 +0100 Subject: [PATCH] Use OutputPage::setPageTitleMsg() instead of ::setPageTitle() Bug: T343994 Change-Id: I706a44af75c85bb8d1e4dd6b8e813e436fd8943b --- QuestyCaptcha/includes/QuestyCaptcha.php | 2 +- SimpleCaptcha/SimpleCaptcha.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/QuestyCaptcha/includes/QuestyCaptcha.php b/QuestyCaptcha/includes/QuestyCaptcha.php index 073a6a903..dd2b62e09 100644 --- a/QuestyCaptcha/includes/QuestyCaptcha.php +++ b/QuestyCaptcha/includes/QuestyCaptcha.php @@ -109,7 +109,7 @@ class QuestyCaptcha extends SimpleCaptcha { public function showHelp() { $context = RequestContext::getMain(); $out = $context->getOutput(); - $out->setPageTitle( $context->msg( 'captchahelp-title' ) ); + $out->setPageTitleMsg( $context->msg( 'captchahelp-title' ) ); $out->addWikiMsg( 'questycaptchahelp-text' ); if ( CaptchaStore::get()->cookiesNeeded() ) { $out->addWikiMsg( 'captchahelp-cookies-needed' ); diff --git a/SimpleCaptcha/SimpleCaptcha.php b/SimpleCaptcha/SimpleCaptcha.php index e502d77fd..29dec2374 100644 --- a/SimpleCaptcha/SimpleCaptcha.php +++ b/SimpleCaptcha/SimpleCaptcha.php @@ -1111,7 +1111,7 @@ class SimpleCaptcha { public function showHelp() { $context = RequestContext::getMain(); $out = $context->getOutput(); - $out->setPageTitle( $context->msg( 'captchahelp-title' ) ); + $out->setPageTitleMsg( $context->msg( 'captchahelp-title' ) ); $out->addWikiMsg( 'captchahelp-text' ); if ( CaptchaStore::get()->cookiesNeeded() ) { $out->addWikiMsg( 'captchahelp-cookies-needed' );