From acdbf7ae1a810733dffad43e39ba316e92a9075e Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 20 Dec 2008 09:32:47 +0000 Subject: [PATCH] Search & replace war on old wf* xml functions --- ConfirmEdit_body.php | 4 ++-- FancyCaptcha.class.php | 6 +++--- MathCaptcha.class.php | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ConfirmEdit_body.php b/ConfirmEdit_body.php index 99c7a72..2e7fd04 100644 --- a/ConfirmEdit_body.php +++ b/ConfirmEdit_body.php @@ -102,12 +102,12 @@ class SimpleCaptcha { $index = $this->storeCaptcha( $captcha ); return "

= " . - wfElement( 'input', array( + Xml::element( 'input', array( 'name' => 'wpCaptchaWord', 'id' => 'wpCaptchaWord', 'tabindex' => 1 ) ) . // tab in before the edit textarea "

\n" . - wfElement( 'input', array( + Xml::element( 'input', array( 'type' => 'hidden', 'name' => 'wpCaptchaId', 'id' => 'wpCaptchaId', diff --git a/FancyCaptcha.class.php b/FancyCaptcha.class.php index cf723d7..0128417 100644 --- a/FancyCaptcha.class.php +++ b/FancyCaptcha.class.php @@ -57,19 +57,19 @@ class FancyCaptcha extends SimpleCaptcha { $title = Title::makeTitle( NS_SPECIAL, 'Captcha/image' ); return "

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

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

" . - wfElement( 'input', array( + Xml::element( 'input', array( 'name' => 'wpCaptchaWord', 'id' => 'wpCaptchaWord', 'tabindex' => 1 ) ) . // tab in before the edit textarea diff --git a/MathCaptcha.class.php b/MathCaptcha.class.php index 884a4b3..9348d87 100644 --- a/MathCaptcha.class.php +++ b/MathCaptcha.class.php @@ -22,8 +22,8 @@ class MathCaptcha extends SimpleCaptcha { $index = $this->storeCaptcha( array( 'answer' => $answer ) ); $form = ''; - $form .= '
' . $this->fetchMath( $sum ) . '' . wfInput( 'wpCaptchaWord', false, false, array( 'tabindex' => '1' ) ) . '
'; - $form .= wfHidden( 'wpCaptchaId', $index ); + $form .= '' . Xml::input( 'wpCaptchaWord', false, false, array( 'tabindex' => '1' ) ) . ''; + $form .= Xml::hidden( 'wpCaptchaId', $index ); return $form; } -- 2.39.5