X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialContributions.php;h=f60d5f02dbf6f40493fab6f2992f1ce0918d837e;hb=3f2b9385548857ab12b6117912e7c902cc96d02f;hp=81e2f9e7376ec1c4b5e6e2dff81155878b094393;hpb=43a0144346da4e6edbbadee0b7d9def53357bc10;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 81e2f9e737..f60d5f02db 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -45,6 +45,7 @@ class SpecialContributions extends IncludableSpecialPage { 'mediawiki.special', 'mediawiki.special.changeslist', ] ); + $out->addModules( 'mediawiki.special.recentchanges' ); $this->addHelpLink( 'Help:User contributions' ); $this->opts = []; @@ -243,9 +244,9 @@ class SpecialContributions extends IncludableSpecialPage { $output = $pager->getBody(); if ( !$this->including() ) { - $output = '

' . $pager->getNavigationBar() . '

' . + $output = $pager->getNavigationBar() . $output . - '

' . $pager->getNavigationBar() . '

'; + $pager->getNavigationBar(); } $out->addHTML( $output ); } @@ -352,7 +353,9 @@ class SpecialContributions extends IncludableSpecialPage { } } - return $this->msg( 'contribsub2' )->rawParams( $user, $links )->params( $userObj->getName() ); + return Html::rawElement( 'div', [ 'class' => 'mw-contributions-user-tools' ], + $this->msg( 'contribsub2' )->rawParams( $user, $links )->params( $userObj->getName() ) + ); } /** @@ -607,6 +610,7 @@ class SpecialContributions extends IncludableSpecialPage { $labelNewbies . '
' . $labelUsername . ' ' . $input . ' ' ); + $hidden = $this->opts['namespace'] === '' ? ' mw-input-hidden' : ''; $namespaceSelection = Xml::tags( 'div', [], @@ -625,11 +629,11 @@ class SpecialContributions extends IncludableSpecialPage { ) . "\u{00A0}" . Html::rawElement( 'span', - [ 'class' => 'mw-input-with-label' ], + [ 'class' => 'mw-input-with-label' . $hidden ], Xml::checkLabel( $this->msg( 'invert' )->text(), 'nsInvert', - 'nsInvert', + 'nsinvert', $this->opts['nsInvert'], [ 'title' => $this->msg( 'tooltip-invert' )->text(), @@ -637,11 +641,11 @@ class SpecialContributions extends IncludableSpecialPage { ] ) . "\u{00A0}" ) . - Html::rawElement( 'span', [ 'class' => 'mw-input-with-label' ], + Html::rawElement( 'span', [ 'class' => 'mw-input-with-label' . $hidden ], Xml::checkLabel( $this->msg( 'namespace_association' )->text(), 'associated', - 'associated', + 'nsassociated', $this->opts['associated'], [ 'title' => $this->msg( 'tooltip-namespace_association' )->text(),