From 588cc40aeec0165400421ef9612e81b6d2c7b936 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 13 Jun 2012 23:40:19 +0200 Subject: Update to MediaWiki 1.19.1 --- extensions/ConfirmEdit/FancyCaptcha.class.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'extensions/ConfirmEdit/FancyCaptcha.class.php') 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 "

" . - Xml::element( 'img', array( + Html::element( 'img', array( 'src' => $title->getLocalUrl( 'wpCaptchaId=' . urlencode( $index ) ), 'width' => $info['width'], 'height' => $info['height'], 'alt' => '' ) ) . "

\n" . - Xml::element( 'input', array( + Html::element( 'input', array( 'type' => 'hidden', 'name' => 'wpCaptchaId', 'id' => 'wpCaptchaId', 'value' => $index ) ) . - "

" . + '

' . + 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 "

\n"; } -- cgit v1.2.2