r36670 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36669‎ | r36670 | r36671 >
Date:13:07, 26 June 2008
Author:daniel
Status:old
Tags:
Comment:
added id for gadget sections on preferences page
Modified paths:
  • /trunk/extensions/Gadgets/Gadgets.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Gadgets/Gadgets.php
@@ -159,7 +159,7 @@
160160 foreach ( $gadgets as $section => $entries ) {
161161 if ( $section !== false && $section !== '' ) {
162162 $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" );
164164 }
165165
166166 foreach ( $entries as $gname => $code ) {

Status & tagging log