Rename autonym for 'no' from 'norsk bokmål' to 'norsk'
[lhc/web/wiklou.git] / includes / ListToggle.php
index dfa1763..2c87b8b 100644 (file)
@@ -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',
                        [