r49813 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49812‎ | r49813 | r49814 >
Date:11:10, 24 April 2009
Author:werdna
Status:ok
Tags:
Comment:
Fix double display of headings
Modified paths:
  • /trunk/extensions/Gadgets/Gadgets.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Gadgets/Gadgets.php
@@ -125,9 +125,10 @@
126126
127127 wfLoadExtensionMessages( 'Gadgets' );
128128
129 - $options = array_fill_keys( array_keys($gadgets), array() );
 129+ $options = array();
130130 foreach( $gadgets as $section => $thisSection ) {
131131 $section = wfMsgExt( "gadget-section-$section", 'parseinline' );
 132+ $options[$section] = array();
132133 foreach( $thisSection as $gname => $code ) {
133134 $options[$section][wfMsgExt( "gadget-$gname", 'parseinline' )] = $gname;
134135 }

Status & tagging log