mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
Search & replace war on old wf* xml functions
This commit is contained in:
parent
afc5cc4cde
commit
acdbf7ae1a
|
@ -102,12 +102,12 @@ class SimpleCaptcha {
|
|||
$index = $this->storeCaptcha( $captcha );
|
||||
|
||||
return "<p><label for=\"wpCaptchaWord\">{$captcha['question']}</label> = " .
|
||||
wfElement( 'input', array(
|
||||
Xml::element( 'input', array(
|
||||
'name' => 'wpCaptchaWord',
|
||||
'id' => 'wpCaptchaWord',
|
||||
'tabindex' => 1 ) ) . // tab in before the edit textarea
|
||||
"</p>\n" .
|
||||
wfElement( 'input', array(
|
||||
Xml::element( 'input', array(
|
||||
'type' => 'hidden',
|
||||
'name' => 'wpCaptchaId',
|
||||
'id' => 'wpCaptchaId',
|
||||
|
|
|
@ -57,19 +57,19 @@ class FancyCaptcha extends SimpleCaptcha {
|
|||
$title = Title::makeTitle( NS_SPECIAL, 'Captcha/image' );
|
||||
|
||||
return "<p>" .
|
||||
wfElement( 'img', array(
|
||||
Xml::element( 'img', array(
|
||||
'src' => $title->getLocalUrl( 'wpCaptchaId=' . urlencode( $index ) ),
|
||||
'width' => $info['width'],
|
||||
'height' => $info['height'],
|
||||
'alt' => '' ) ) .
|
||||
"</p>\n" .
|
||||
wfElement( 'input', array(
|
||||
Xml::element( 'input', array(
|
||||
'type' => 'hidden',
|
||||
'name' => 'wpCaptchaId',
|
||||
'id' => 'wpCaptchaId',
|
||||
'value' => $index ) ) .
|
||||
"<p>" .
|
||||
wfElement( 'input', array(
|
||||
Xml::element( 'input', array(
|
||||
'name' => 'wpCaptchaWord',
|
||||
'id' => 'wpCaptchaWord',
|
||||
'tabindex' => 1 ) ) . // tab in before the edit textarea
|
||||
|
|
|
@ -22,8 +22,8 @@ class MathCaptcha extends SimpleCaptcha {
|
|||
$index = $this->storeCaptcha( array( 'answer' => $answer ) );
|
||||
|
||||
$form = '<table><tr><td>' . $this->fetchMath( $sum ) . '</td>';
|
||||
$form .= '<td>' . wfInput( 'wpCaptchaWord', false, false, array( 'tabindex' => '1' ) ) . '</td></tr></table>';
|
||||
$form .= wfHidden( 'wpCaptchaId', $index );
|
||||
$form .= '<td>' . Xml::input( 'wpCaptchaWord', false, false, array( 'tabindex' => '1' ) ) . '</td></tr></table>';
|
||||
$form .= Xml::hidden( 'wpCaptchaId', $index );
|
||||
return $form;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue