* Better use of Xml functions
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 10 May 2007 17:58:33 +0000 (17:58 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 10 May 2007 17:58:33 +0000 (17:58 +0000)
includes/SpecialIpblocklist.php

index 079be45..16da46a 100644 (file)
@@ -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' ) ) ) .
-                       '</form>';
+                       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' ) )
+                       );
        }
 
        /**