Index: trunk/extensions/Gadgets/Gadgets.php |
— | — | @@ -159,7 +159,7 @@ |
160 | 160 | foreach ( $gadgets as $section => $entries ) { |
161 | 161 | if ( $section !== false && $section !== '' ) { |
162 | 162 | $ttext = wfMsgExt( "gadget-section-$section", $msgOpt ); |
163 | | - $out->addHtml( "\n<h2>" . $ttext . "</h2>\n" ); |
| 163 | + $out->addHtml( "\n<h2 id=\"".htmlspecialchars("gadget-section-$section")."\">" . $ttext . "</h2>\n" ); |
164 | 164 | } |
165 | 165 | |
166 | 166 | foreach ( $entries as $gname => $code ) { |