X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRecentchanges.php;h=46b55209156e5e206bfe4242e39a1c9fbfafe190;hb=ba32e133e97b0f1f6b9ddb7e3c7a9cc79d0be977;hp=1e016a5f10a9dc10920f69fce65baed870ac105a;hpb=10e2511f81d329c9ad401dd979e6ccd9fb64d987;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 1e016a5f10..46b5520915 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -682,16 +682,21 @@ class SpecialRecentChanges extends ChangesListSpecialPage { [ 'name' => 'namespace', 'id' => 'namespace' ] ); $nsLabel = Xml::label( $this->msg( 'namespace' )->text(), 'namespace' ); - $invert = Xml::checkLabel( + $attribs = [ 'class' => [ 'mw-input-with-label' ] ]; + // Hide the checkboxes when the namespace filter is set to 'all'. + if ( $opts['namespace'] === '' ) { + $attribs['class'][] = 'mw-input-hidden'; + } + $invert = Html::rawElement( 'span', $attribs, Xml::checkLabel( $this->msg( 'invert' )->text(), 'invert', 'nsinvert', $opts['invert'], [ 'title' => $this->msg( 'tooltip-invert' )->text() ] - ); - $associated = Xml::checkLabel( + ) ); + $associated = Html::rawElement( 'span', $attribs, Xml::checkLabel( $this->msg( 'namespace_association' )->text(), 'associated', 'nsassociated', $opts['associated'], [ 'title' => $this->msg( 'tooltip-namespace_association' )->text() ] - ); + ) ); return [ $nsLabel, "$nsSelect $invert $associated" ]; } @@ -912,7 +917,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage { 'span', [ 'class' => 'rclistfrom' ], $this->makeOptionsLink( - $this->msg( 'rclistfrom' )->rawParams( $now, $timenow, $datenow )->parse(), + $this->msg( 'rclistfrom' )->plaintextParams( $now, $timenow, $datenow )->parse(), [ 'from' => $timestamp ], $nondefaults )