diff options
Diffstat (limited to 'extensions/ConfirmEdit/QuestyCaptcha/QuestyCaptcha.class.php')
-rw-r--r-- | extensions/ConfirmEdit/QuestyCaptcha/QuestyCaptcha.class.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/ConfirmEdit/QuestyCaptcha/QuestyCaptcha.class.php b/extensions/ConfirmEdit/QuestyCaptcha/QuestyCaptcha.class.php index 2e5274a8..e07dc5dc 100644 --- a/extensions/ConfirmEdit/QuestyCaptcha/QuestyCaptcha.class.php +++ b/extensions/ConfirmEdit/QuestyCaptcha/QuestyCaptcha.class.php @@ -13,7 +13,7 @@ class QuestyCaptcha extends SimpleCaptcha { /** Validate a captcha response */ function keyMatch( $answer, $info ) { if ( is_array( $info['answer'] ) ) { - return in_array( strtolower( $answer ), $info['answer'] ); + return in_array( strtolower( $answer ), array_map( 'strtolower', $info['answer'] ) ); } else { return strtolower( $answer ) == strtolower( $info['answer'] ); } @@ -41,7 +41,7 @@ class QuestyCaptcha extends SimpleCaptcha { return array( 'question' => $question, 'answer' => $answer ); } - function getForm() { + function getForm( OutputPage $out ) { $captcha = $this->getCaptcha(); if ( !$captcha ) { die( "No questions found; set some in LocalSettings.php using the format from QuestyCaptcha.php." ); |