Merge "Use OutputPage::setPageTitleMsg() instead of ::setPageTitle()"

This commit is contained in:
jenkins-bot 2024-02-17 03:20:15 +00:00 committed by Gerrit Code Review
commit 7fed1dc57a
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' ) );
$out->setPageTitleMsg( $context->msg( 'captchahelp-title' ) );
$out->addWikiMsg( 'questycaptchahelp-text' );
if ( CaptchaStore::get()->cookiesNeeded() ) {
$out->addWikiMsg( 'captchahelp-cookies-needed' );

View file

@ -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' );