diff options
Diffstat (limited to 'extensions/ConfirmEdit/FancyCaptcha.class.php')
-rw-r--r-- | extensions/ConfirmEdit/FancyCaptcha.class.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/extensions/ConfirmEdit/FancyCaptcha.class.php b/extensions/ConfirmEdit/FancyCaptcha.class.php index 6da3207d..97a89045 100644 --- a/extensions/ConfirmEdit/FancyCaptcha.class.php +++ b/extensions/ConfirmEdit/FancyCaptcha.class.php @@ -57,24 +57,28 @@ class FancyCaptcha extends SimpleCaptcha { $title = SpecialPage::getTitleFor( 'Captcha', 'image' ); return "<p>" . - Xml::element( 'img', array( + Html::element( 'img', array( 'src' => $title->getLocalUrl( 'wpCaptchaId=' . urlencode( $index ) ), 'width' => $info['width'], 'height' => $info['height'], 'alt' => '' ) ) . "</p>\n" . - Xml::element( 'input', array( + Html::element( 'input', array( 'type' => 'hidden', 'name' => 'wpCaptchaId', 'id' => 'wpCaptchaId', 'value' => $index ) ) . - "<p>" . + '<p>' . + Html::element( 'label', array( + 'for' => 'wpCaptchaWord', + ), parent::getMessage( 'label' ) . wfMsg( 'colon-separator' ) ) . Html::element( 'input', array( 'name' => 'wpCaptchaWord', 'id' => 'wpCaptchaWord', + 'type' => 'text', 'autocorrect' => 'off', 'autocapitalize' => 'off', - 'required', + 'required' => 'required', 'tabindex' => 1 ) ) . // tab in before the edit textarea "</p>\n"; } |