mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
OutputPage::setPageTitle() can take a Message directly
Bug: T343849 Change-Id: Ib519fbcb47cbe8d0af9ec495c7c91cb2ec8a736e
This commit is contained in:
parent
88dfd7dc3f
commit
6bc6f1ef87
|
@ -109,7 +109,7 @@ class QuestyCaptcha extends SimpleCaptcha {
|
||||||
public function showHelp() {
|
public function showHelp() {
|
||||||
$context = RequestContext::getMain();
|
$context = RequestContext::getMain();
|
||||||
$out = $context->getOutput();
|
$out = $context->getOutput();
|
||||||
$out->setPageTitle( $context->msg( 'captchahelp-title' )->text() );
|
$out->setPageTitle( $context->msg( 'captchahelp-title' ) );
|
||||||
$out->addWikiMsg( 'questycaptchahelp-text' );
|
$out->addWikiMsg( 'questycaptchahelp-text' );
|
||||||
if ( CaptchaStore::get()->cookiesNeeded() ) {
|
if ( CaptchaStore::get()->cookiesNeeded() ) {
|
||||||
$out->addWikiMsg( 'captchahelp-cookies-needed' );
|
$out->addWikiMsg( 'captchahelp-cookies-needed' );
|
||||||
|
|
|
@ -1207,7 +1207,7 @@ class SimpleCaptcha {
|
||||||
public function showHelp() {
|
public function showHelp() {
|
||||||
$context = RequestContext::getMain();
|
$context = RequestContext::getMain();
|
||||||
$out = $context->getOutput();
|
$out = $context->getOutput();
|
||||||
$out->setPageTitle( $context->msg( 'captchahelp-title' )->text() );
|
$out->setPageTitle( $context->msg( 'captchahelp-title' ) );
|
||||||
$out->addWikiMsg( 'captchahelp-text' );
|
$out->addWikiMsg( 'captchahelp-text' );
|
||||||
if ( CaptchaStore::get()->cookiesNeeded() ) {
|
if ( CaptchaStore::get()->cookiesNeeded() ) {
|
||||||
$out->addWikiMsg( 'captchahelp-cookies-needed' );
|
$out->addWikiMsg( 'captchahelp-cookies-needed' );
|
||||||
|
|
Loading…
Reference in a new issue