OutputPage::setPageTitle() can take a Message directly

Bug: T343849
Change-Id: Ib519fbcb47cbe8d0af9ec495c7c91cb2ec8a736e
This commit is contained in:
C. Scott Ananian 2023-08-10 11:44:44 -04:00
parent 88dfd7dc3f
commit 6bc6f1ef87
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ class QuestyCaptcha extends SimpleCaptcha {
public function showHelp() {
$context = RequestContext::getMain();
$out = $context->getOutput();
$out->setPageTitle( $context->msg( 'captchahelp-title' )->text() );
$out->setPageTitle( $context->msg( 'captchahelp-title' ) );
$out->addWikiMsg( 'questycaptchahelp-text' );
if ( CaptchaStore::get()->cookiesNeeded() ) {
$out->addWikiMsg( 'captchahelp-cookies-needed' );

View file

@ -1207,7 +1207,7 @@ class SimpleCaptcha {
public function showHelp() {
$context = RequestContext::getMain();
$out = $context->getOutput();
$out->setPageTitle( $context->msg( 'captchahelp-title' )->text() );
$out->setPageTitle( $context->msg( 'captchahelp-title' ) );
$out->addWikiMsg( 'captchahelp-text' );
if ( CaptchaStore::get()->cookiesNeeded() ) {
$out->addWikiMsg( 'captchahelp-cookies-needed' );