Index: trunk/phase3/includes/SpecialMIMEsearch.php |
— | — | @@ -12,7 +12,6 @@ |
13 | 13 | /** |
14 | 14 | * Searches the database for files of the requested MIME type, comparing this with the |
15 | 15 | * 'img_major_mime' and 'img_minor_mime' fields in the image table. |
16 | | - * @addtogroup SpecialPage |
17 | 16 | */ |
18 | 17 | class MIMEsearchPage extends QueryPage { |
19 | 18 | var $major, $minor; |
— | — | @@ -87,15 +86,12 @@ |
88 | 87 | $mime = isset( $par ) ? $par : $wgRequest->getText( 'mime' ); |
89 | 88 | |
90 | 89 | $wgOut->addHTML( |
91 | | - Xml::openElement( 'form', |
92 | | - array( |
93 | | - 'id' => 'specialmimesearch', |
94 | | - 'method' => 'get', |
95 | | - 'action' => $wgTitle->escapeLocalUrl() |
96 | | - ) |
97 | | - ) . |
98 | | - Xml::inputLabel( wfMsg( 'mimetype' ), 'mime', 'mime', 20, $mime ) . |
99 | | - Xml::submitButton( wfMsg( 'ilsubmit' ) ) . |
| 90 | + Xml::openElement( 'form', array( 'id' => 'specialmimesearch', 'method' => 'get', 'action' => $wgTitle->getLocalUrl() ) ) . |
| 91 | + Xml::openElement( 'fieldset' ) . |
| 92 | + Xml::element( 'legend', null, wfMsg( 'mimesearch' ) ) . |
| 93 | + Xml::inputLabel( wfMsg( 'mimetype' ), 'mime', 'mime', 20, $mime ) . ' ' . |
| 94 | + Xml::submitButton( wfMsg( 'ilsubmit' ) ) . |
| 95 | + Xml::closeElement( 'fieldset' ) . |
100 | 96 | Xml::closeElement( 'form' ) |
101 | 97 | ); |
102 | 98 | |
— | — | @@ -113,7 +109,7 @@ |
114 | 110 | if( strpos( $str, '/' ) === false) { |
115 | 111 | return array ('', ''); |
116 | 112 | } |
117 | | - |
| 113 | + |
118 | 114 | list( $major, $minor ) = explode( '/', $str, 2 ); |
119 | 115 | |
120 | 116 | return array( |
— | — | @@ -138,4 +134,3 @@ |
139 | 135 | |
140 | 136 | return in_array( $type, $types ); |
141 | 137 | } |
142 | | - |