From 8b5014389fb0d0d48fb10f1211656296144d7055 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 10 May 2007 17:58:33 +0000 Subject: [PATCH] * Better use of Xml functions --- includes/SpecialIpblocklist.php | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/includes/SpecialIpblocklist.php b/includes/SpecialIpblocklist.php index 079be45ac2..16da46a386 100644 --- a/includes/SpecialIpblocklist.php +++ b/includes/SpecialIpblocklist.php @@ -243,25 +243,13 @@ class IPUnblockForm { function searchForm() { global $wgTitle, $wgScript, $wgRequest; return - wfElement( 'form', array( - 'action' => $wgScript ), - null ) . - wfHidden( 'title', $wgTitle->getPrefixedDbKey() ) . - wfElement( 'input', array( - 'type' => 'hidden', - 'name' => 'action', - 'value' => 'search' ) ). - wfElement( 'input', array( - 'type' => 'hidden', - 'name' => 'limit', - 'value' => $wgRequest->getText( 'limit' ) ) ) . - wfElement( 'input', array( - 'name' => 'ip', - 'value' => $this->ip ) ) . - wfElement( 'input', array( - 'type' => 'submit', - 'value' => wfMsg( 'ipblocklist-submit' ) ) ) . - ''; + Xml::tags( 'form', array( 'action' => $wgScript ), + Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() ) . + Xml::hidden( 'action', 'search' ) . + Xml::hidden( 'limit', $wgRequest->getText( 'limit' ) ) . + Xml::input( 'ip', /*size*/ false, $this->ip ) . + Xml::submitButton( wfMsg( 'ipblocklist-submit' ) ) + ); } /** -- 2.20.1