diff options
Diffstat (limited to 'extensions/ConfirmEdit/QuestyCaptcha.class.php')
-rw-r--r-- | extensions/ConfirmEdit/QuestyCaptcha.class.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/ConfirmEdit/QuestyCaptcha.class.php b/extensions/ConfirmEdit/QuestyCaptcha.class.php index 8e87db30..93954f1e 100644 --- a/extensions/ConfirmEdit/QuestyCaptcha.class.php +++ b/extensions/ConfirmEdit/QuestyCaptcha.class.php @@ -55,18 +55,18 @@ class QuestyCaptcha extends SimpleCaptcha { function getMessage( $action ) { $name = 'questycaptcha-' . $action; - $text = wfMsg( $name ); + $text = wfMessage( $name )->text(); # Obtain a more tailored message, if possible, otherwise, fall back to # the default for edits - return wfEmptyMsg( $name, $text ) ? wfMsg( 'questycaptcha-edit' ) : $text; + return wfMessage( $name, $text )->isDisabled() ? wfMessage( 'questycaptcha-edit' )->text() : $text; } function showHelp() { global $wgOut; - $wgOut->setPageTitle( wfMsg( 'captchahelp-title' ) ); - $wgOut->addWikiText( wfMsg( 'questycaptchahelp-text' ) ); + $wgOut->setPageTitle( wfMessage( 'captchahelp-title' )->text() ); + $wgOut->addWikiMsg( 'questycaptchahelp-text' ); if ( CaptchaStore::get()->cookiesNeeded() ) { - $wgOut->addWikiText( wfMsg( 'captchahelp-cookies-needed' ) ); + $wgOut->addWikiMsg( 'captchahelp-cookies-needed' ); } } } |