X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2Fforms%2FPreferencesFormOOUI.php;h=9b86812dfa4e72c0dce7dc2d55b8a4c35be557b5;hb=ef752a33bbc796ec7c3d555e43c02f611af8c29a;hp=fd98dcbc3398c098ea01673d2dd154fb31f2923e;hpb=54b0e8d1562cfae72ff13de1951250fdda499505;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/forms/PreferencesFormOOUI.php b/includes/specials/forms/PreferencesFormOOUI.php index fd98dcbc33..9b86812dfa 100644 --- a/includes/specials/forms/PreferencesFormOOUI.php +++ b/includes/specials/forms/PreferencesFormOOUI.php @@ -139,7 +139,11 @@ class PreferencesFormOOUI extends OOUIHTMLForm { $label = $this->getLegend( $key ); $content = $this->getHeaderText( $key ) . - $this->displaySection( $this->mFieldTree[$key] ) . + $this->displaySection( + $this->mFieldTree[$key], + "", + "mw-prefsection-$key-" + ) . $this->getFooterText( $key ); $tabPanels[] = new OOUI\TabPanelLayout( [ @@ -148,6 +152,7 @@ class PreferencesFormOOUI extends OOUIHTMLForm { 'label' => $label, 'content' => new OOUI\FieldsetLayout( [ 'classes' => [ 'mw-prefs-section-fieldset' ], + 'id' => "mw-prefsection-$key", 'label' => $label, 'items' => [ new OOUI\Widget( [ @@ -190,7 +195,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' ) );