EditPage: Remove unused variable in getCheckboxesOOUI()
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 31 Aug 2017 14:37:40 +0000 (16:37 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 31 Aug 2017 14:37:40 +0000 (16:37 +0200)
This was unnecessarily copypasted from getCheckboxes().
The label's 'id' attribute is correctly being set below.

Change-Id: I1557461bfd16c22bb949e26d419e154f80c963d7

includes/EditPage.php

index 40913bb..664e9b8 100644 (file)
@@ -4207,9 +4207,6 @@ class EditPage {
                        if ( isset( $options['title-message'] ) ) {
                                $title = $this->context->msg( $options['title-message'] )->text();
                        }
                        if ( isset( $options['title-message'] ) ) {
                                $title = $this->context->msg( $options['title-message'] )->text();
                        }
-                       if ( isset( $options['label-id'] ) ) {
-                               $labelAttribs['id'] = $options['label-id'];
-                       }
 
                        $checkboxes[ $legacyName ] = new OOUI\FieldLayout(
                                new OOUI\CheckboxInputWidget( [
 
                        $checkboxes[ $legacyName ] = new OOUI\FieldLayout(
                                new OOUI\CheckboxInputWidget( [