X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialContributions.php;h=59e2bbaadae3da443ce9baa1ca9d7530c914891b;hp=32a887c407d1b111386a62b6a6adff2b3f9a4b8e;hb=cb9bc6cbc7aba32b7e85837fbf5859cd88e0af15;hpb=d1b6cd35d4aa117c454994b4a7896fee8abf17d2 diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 32a887c407..59e2bbaada 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -478,18 +478,15 @@ class SpecialContributions extends IncludableSpecialPage { if ( $tagFilter ) { $filterSelection = Html::rawElement( 'td', - array( 'class' => 'mw-label' ), - array_shift( $tagFilter ) - ); - $filterSelection .= Html::rawElement( - 'td', - array( 'class' => 'mw-input' ), - implode( ' ', $tagFilter ) + array(), + array_shift( $tagFilter ) . implode( ' ', $tagFilter ) ); } else { $filterSelection = Html::rawElement( 'td', array( 'colspan' => 2 ), '' ); } + $this->getOutput()->addModules( 'mediawiki.userSuggest' ); + $labelNewbies = Xml::radioLabel( $this->msg( 'sp-contributions-newbies' )->text(), 'contribs', @@ -510,9 +507,15 @@ class SpecialContributions extends IncludableSpecialPage { 'target', $this->opts['target'], 'text', - array( 'size' => '40', 'required' => '', 'class' => 'mw-input' ) + - ( $this->opts['target'] ? array() : array( 'autofocus' ) - ) + array( + 'size' => '40', + 'required' => '', + 'class' => array( + 'mw-input', + 'mw-ui-input-inline', + 'mw-autocomplete-user', // used by mediawiki.userSuggest + ), + ) + ( $this->opts['target'] ? array() : array( 'autofocus' ) ) ); $targetSelection = Html::rawElement( 'td', @@ -522,16 +525,12 @@ class SpecialContributions extends IncludableSpecialPage { $namespaceSelection = Xml::tags( 'td', - array( 'class' => 'mw-label' ), + array(), Xml::label( $this->msg( 'namespace' )->text(), 'namespace', '' - ) - ); - $namespaceSelection .= Html::rawElement( - 'td', - null, + ) . Html::namespaceSelector( array( 'selected' => $this->opts['namespace'], 'all' => '' ), array( @@ -617,9 +616,9 @@ class SpecialContributions extends IncludableSpecialPage { $this->opts['year'] === '' ? MWTimestamp::getInstance()->format( 'Y' ) : $this->opts['year'], $this->opts['month'] ) . ' ' . - Xml::submitButton( + Html::submitButton( $this->msg( 'sp-contributions-submit' )->text(), - array( 'class' => 'mw-submit' ) + array( 'class' => 'mw-submit' ), array( 'mw-ui-progressive' ) ) ); @@ -935,7 +934,7 @@ class ContribsPager extends ReverseChronologicalPager { * @return string */ function getStartBody() { - return "