Search & replace war on old wf* xml functions

This commit is contained in:
Aaron Schulz 2008-12-20 09:32:47 +00:00
parent afc5cc4cde
commit acdbf7ae1a
3 changed files with 7 additions and 7 deletions

View file

@ -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',

View file

@ -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

View file

@ -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;
}