From e73e4073ff1d75c04ab7f23c5c2351db2a4e446d Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Tue, 18 Mar 2008 20:29:46 +0000 Subject: [PATCH] * Add a nice fieldset around the input form * Use proper XML function --- includes/SpecialImagelist.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/includes/SpecialImagelist.php b/includes/SpecialImagelist.php index 1688fe7c61..f706bbb1cb 100644 --- a/includes/SpecialImagelist.php +++ b/includes/SpecialImagelist.php @@ -136,17 +136,22 @@ class ImageListPager extends TablePager { function getForm() { global $wgRequest, $wgMiserMode; - $url = $this->getTitle()->escapeLocalURL(); $search = $wgRequest->getText( 'ilsearch' ); - $s = "
\n" . - wfMsgHtml( 'table_pager_limit', $this->getLimitSelect() ); + + $s = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $this->getTitle()->getLocalURL(), 'id' => 'mw-imagelist-form' ) ) . + Xml::openElement( 'fieldset' ) . + Xml::element( 'legend', null, wfMsg( 'imagelist' ) ) . + wfMsgHtml( 'table_pager_limit', $this->getLimitSelect() ); + if ( !$wgMiserMode ) { $s .= "
\n" . - Xml::inputLabel( wfMsg( 'imagelist_search_for' ), 'ilsearch', 'mw-ilsearch', 20, $search ); + Xml::inputLabel( wfMsg( 'imagelist_search_for' ), 'ilsearch', 'mw-ilsearch', 20, $search ); } - $s .= " " . Xml::submitButton( wfMsg( 'table_pager_limit_submit' ) ) ." \n" . + $s .= ' ' . + Xml::submitButton( wfMsg( 'table_pager_limit_submit' ) ) ." \n" . $this->getHiddenFields( array( 'limit', 'ilsearch' ) ) . - "
\n"; + Xml::closeElement( 'fieldset' ) . + Xml::closeElement( 'form' ) . "\n"; return $s; } -- 2.20.1