X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialContributions.php;h=3cd4d4dcd547465fbedf7c136da0b02039f27adc;hb=caf78241e130deb2fb562d8dc563afcd1f3e486c;hp=6aeb2c38ef5cef7121afd9871ebba294c024915b;hpb=fd8a5d468934398595874783fa75ae2bf1b2b482;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 6aeb2c38ef..3cd4d4dcd5 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -203,7 +203,7 @@ class SpecialContributions extends IncludableSpecialPage { if ( !$pager->getNumRows() ) { $out->addWikiMsg( 'nocontribs', $target ); } else { - # Show a message about slave lag, if applicable + # Show a message about replica DB lag, if applicable $lag = wfGetLB()->safeGetLag( $pager->getDatabase() ); if ( $lag > 0 ) { $out->showLagWarning( $lag ); @@ -496,12 +496,12 @@ class SpecialContributions extends IncludableSpecialPage { if ( $tagFilter ) { $filterSelection = Html::rawElement( - 'td', + 'div', [], implode( ' ', $tagFilter ) ); } else { - $filterSelection = Html::rawElement( 'td', [ 'colspan' => 2 ], '' ); + $filterSelection = Html::rawElement( 'div', [], '' ); } $this->getOutput()->addModules( 'mediawiki.userSuggest' ); @@ -542,19 +542,19 @@ class SpecialContributions extends IncludableSpecialPage { ); $targetSelection = Html::rawElement( - 'td', - [ 'colspan' => 2 ], - $labelNewbies . '
' . $labelUsername . ' ' . $input . ' ' + 'div', + [], + $labelNewbies . '
' . $labelUsername . ' ' . $input . ' ' ); $namespaceSelection = Xml::tags( - 'td', + 'div', [], Xml::label( $this->msg( 'namespace' )->text(), 'namespace', '' - ) . + ) . ' ' . Html::namespaceSelector( [ 'selected' => $this->opts['namespace'], 'all' => '' ], [ @@ -647,12 +647,12 @@ class SpecialContributions extends IncludableSpecialPage { ); $extraOptions = Html::rawElement( - 'td', - [ 'colspan' => 2 ], + 'div', + [], implode( '', $filters ) ); - $dateSelectionAndSubmit = Xml::tags( 'td', [ 'colspan' => 2 ], + $dateSelectionAndSubmit = Xml::tags( 'div', [], Xml::dateMenu( $this->opts['year'] === '' ? MWTimestamp::getInstance()->format( 'Y' ) : $this->opts['year'], $this->opts['month'] @@ -663,13 +663,14 @@ class SpecialContributions extends IncludableSpecialPage { ) ); - $form .= Xml::fieldset( $this->msg( 'sp-contributions-search' )->text() ); - $form .= Html::rawElement( 'table', [ 'class' => 'mw-contributions-table' ], "\n" . - Html::rawElement( 'tr', [], $targetSelection ) . "\n" . - Html::rawElement( 'tr', [], $namespaceSelection ) . "\n" . - Html::rawElement( 'tr', [], $filterSelection ) . "\n" . - Html::rawElement( 'tr', [], $extraOptions ) . "\n" . - Html::rawElement( 'tr', [], $dateSelectionAndSubmit ) . "\n" + $form .= Xml::fieldset( + $this->msg( 'sp-contributions-search' )->text(), + $targetSelection . + $namespaceSelection . + $filterSelection . + $extraOptions . + $dateSelectionAndSubmit, + [ 'class' => 'mw-contributions-table' ] ); $explain = $this->msg( 'sp-contributions-explain' ); @@ -677,7 +678,7 @@ class SpecialContributions extends IncludableSpecialPage { $form .= "

{$explain->parse()}

"; } - $form .= Xml::closeElement( 'fieldset' ) . Xml::closeElement( 'form' ); + $form .= Xml::closeElement( 'form' ); return $form; }