mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 03:23:51 +00:00
Fix double display of headings
This commit is contained in:
parent
238a208393
commit
a9058edced
|
@ -125,9 +125,10 @@ function wfGadgetsGetPreferences( $user, &$preferences ) {
|
|||
|
||||
wfLoadExtensionMessages( 'Gadgets' );
|
||||
|
||||
$options = array_fill_keys( array_keys($gadgets), array() );
|
||||
$options = array();
|
||||
foreach( $gadgets as $section => $thisSection ) {
|
||||
$section = wfMsgExt( "gadget-section-$section", 'parseinline' );
|
||||
$options[$section] = array();
|
||||
foreach( $thisSection as $gname => $code ) {
|
||||
$options[$section][wfMsgExt( "gadget-$gname", 'parseinline' )] = $gname;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue