From: Niklas Laxström Date: Thu, 10 May 2007 17:58:33 +0000 (+0000) Subject: * Better use of Xml functions X-Git-Tag: 1.31.0-rc.0~52972 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=8b5014389fb0d0d48fb10f1211656296144d7055;p=lhc%2Fweb%2Fwiklou.git * Better use of Xml functions --- 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' ) ) + ); } /**