X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FListToggle.php;h=2c87b8bac057802334702d1eeaa0e5f3c52387ca;hb=26ca77b85d3e6e54aea1418ffc196f0b6dc62e1c;hp=dfa1763a1976d66bb2c69914151681244d51fbff;hpb=f26ac509dbf2207d6db6f503309aca2ad40a017e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ListToggle.php b/includes/ListToggle.php index dfa1763a19..2c87b8bac0 100644 --- a/includes/ListToggle.php +++ b/includes/ListToggle.php @@ -41,6 +41,7 @@ class ListToggle { private function checkboxLink( $checkboxType ) { return Html::element( + // CSS classes: mw-checkbox-all, mw-checkbox-none, mw-checkbox-invert 'a', [ 'href' => '#', 'class' => 'mw-checkbox-' . $checkboxType ], $this->output->msg( 'checkbox-' . $checkboxType )->text() ); @@ -51,10 +52,11 @@ class ListToggle { */ public function getHTML() { // Select: All, None, Invert - $links = []; - $links[] = $this->checkboxLink( 'all' ); - $links[] = $this->checkboxLink( 'none' ); - $links[] = $this->checkboxLink( 'invert' ); + $links = [ + $this->checkboxLink( 'all' ), + $this->checkboxLink( 'none' ), + $this->checkboxLink( 'invert' ), + ]; return Html::rawElement( 'div', [