Index: trunk/extensions/Gadgets/Gadgets.php |
— | — | @@ -125,9 +125,10 @@ |
126 | 126 | |
127 | 127 | wfLoadExtensionMessages( 'Gadgets' ); |
128 | 128 | |
129 | | - $options = array_fill_keys( array_keys($gadgets), array() ); |
| 129 | + $options = array(); |
130 | 130 | foreach( $gadgets as $section => $thisSection ) { |
131 | 131 | $section = wfMsgExt( "gadget-section-$section", 'parseinline' ); |
| 132 | + $options[$section] = array(); |
132 | 133 | foreach( $thisSection as $gname => $code ) { |
133 | 134 | $options[$section][wfMsgExt( "gadget-$gname", 'parseinline' )] = $gname; |
134 | 135 | } |