X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2Fforms%2FPreferencesFormOOUI.php;h=5dae156993c8030c09c0fdba42e9dd52c5576249;hb=a6a6c19c794619c24881d2d984dc18ceb3b6419b;hp=8358cd2bf32ae3cdeeb3deac1985f59e75f319f0;hpb=b306873222f91789e334abcf2005d4b610cfce91;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/forms/PreferencesFormOOUI.php b/includes/specials/forms/PreferencesFormOOUI.php index 8358cd2bf3..5dae156993 100644 --- a/includes/specials/forms/PreferencesFormOOUI.php +++ b/includes/specials/forms/PreferencesFormOOUI.php @@ -146,9 +146,8 @@ class PreferencesFormOOUI extends OOUIHTMLForm { ) . $this->getFooterText( $key ); - $tabPanels[] = new OOUI\TabPanelLayout( [ + $tabPanels[] = new OOUI\TabPanelLayout( 'mw-prefsection-' . $key, [ 'classes' => [ 'mw-htmlform-autoinfuse-lazy' ], - 'name' => 'mw-prefsection-' . $key, 'label' => $label, 'content' => new OOUI\FieldsetLayout( [ 'classes' => [ 'mw-prefs-section-fieldset' ], @@ -195,7 +194,7 @@ class PreferencesFormOOUI extends OOUIHTMLForm { /** * Get the keys of each top level preference section. - * @return array of section keys + * @return string[] List of section keys */ function getPreferenceSections() { return array_keys( array_filter( $this->mFieldTree, 'is_array' ) );