Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -331,7 +331,7 @@ |
332 | 332 | $this->opts['topOnly'] = false; |
333 | 333 | } |
334 | 334 | |
335 | | - $f = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ); |
| 335 | + $f = Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'class' => 'mw-contributions-form' ) ); |
336 | 336 | |
337 | 337 | # Add hidden params for tracking except for parameters in $skipParameters |
338 | 338 | $skipParameters = array( 'namespace', 'deletedOnly', 'target', 'contribs', 'year', 'month', 'topOnly' ); |
— | — | @@ -344,8 +344,7 @@ |
345 | 345 | |
346 | 346 | $tagFilter = ChangeTags::buildTagFilterSelector( $this->opts['tagFilter'] ); |
347 | 347 | |
348 | | - $f .= '<fieldset>' . |
349 | | - Xml::element( 'legend', array(), wfMsg( 'sp-contributions-search' ) ) . |
| 348 | + $f .= Xml::fieldset( wfMsg( 'sp-contributions-search' ) ) . |
350 | 349 | Xml::radioLabel( wfMsgExt( 'sp-contributions-newbies', array( 'parsemag' ) ), |
351 | 350 | 'contribs', 'newbie' , 'newbie', $this->opts['contribs'] == 'newbie' ? true : false ) . '<br />' . |
352 | 351 | Xml::radioLabel( wfMsgExt( 'sp-contributions-username', array( 'parsemag' ) ), |
— | — | @@ -354,27 +353,24 @@ |
355 | 354 | 'size' => '20', |
356 | 355 | 'required' => '' |
357 | 356 | ) + ( $this->opts['target'] ? array() : array( 'autofocus' ) ) ) . ' '. |
358 | | - '<span style="white-space: nowrap">' . |
359 | | - Xml::label( wfMsg( 'namespace' ), 'namespace' ) . ' ' . |
360 | | - Xml::namespaceSelector( $this->opts['namespace'], '' ) . |
361 | | - '</span>' . |
| 357 | + Html::rawElement( 'span', array( 'style' => 'white-space: nowrap' ), |
| 358 | + Xml::label( wfMsg( 'namespace' ), 'namespace' ) . ' ' . |
| 359 | + Xml::namespaceSelector( $this->opts['namespace'], '' ) |
| 360 | + ) . |
362 | 361 | Xml::checkLabel( wfMsg( 'history-show-deleted' ), |
363 | 362 | 'deletedOnly', 'mw-show-deleted-only', $this->opts['deletedOnly'] ) . '<br />' . |
364 | 363 | Xml::tags( 'p', null, Xml::checkLabel( wfMsg( 'sp-contributions-toponly' ), |
365 | 364 | 'topOnly', 'mw-show-top-only', $this->opts['topOnly'] ) ) . |
366 | 365 | ( $tagFilter ? Xml::tags( 'p', null, implode( ' ', $tagFilter ) ) : '' ) . |
367 | | - Xml::openElement( 'p' ) . |
368 | | - '<span style="white-space: nowrap">' . |
369 | | - Xml::dateMenu( $this->opts['year'], $this->opts['month'] ) . |
370 | | - '</span>' . ' ' . |
371 | | - Xml::submitButton( wfMsg( 'sp-contributions-submit' ) ) . |
372 | | - Xml::closeElement( 'p' ); |
373 | | - |
| 366 | + Html::rawElement( 'p', array( 'style' => 'white-space: nowrap' ), |
| 367 | + Xml::dateMenu( $this->opts['year'], $this->opts['month'] ) . ' ' . |
| 368 | + Xml::submitButton( wfMsg( 'sp-contributions-submit' ) ) |
| 369 | + ) . ' '; |
374 | 370 | $explain = wfMsgExt( 'sp-contributions-explain', 'parseinline' ); |
375 | | - if( !wfEmptyMsg( 'sp-contributions-explain', $explain ) ) |
| 371 | + if( !wfEmptyMsg( 'sp-contributions-explain', $explain ) ) { |
376 | 372 | $f .= "<p id='mw-sp-contributions-explain'>{$explain}</p>"; |
377 | | - |
378 | | - $f .= '</fieldset>' . |
| 373 | + } |
| 374 | + $f .= Xml::closeElement('fieldset' ) . |
379 | 375 | Xml::closeElement( 'form' ); |
380 | 376 | return $f; |
381 | 377 | } |