r58755 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58754‎ | r58755 | r58756 >
Date:10:57, 8 November 2009
Author:raymond
Status:reverted (Comments)
Tags:
Comment:
Add a class to the h2 element for easier linking to this section
Modified paths:
  • /trunk/extensions/GlobalUsage/SpecialGlobalUsage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/GlobalUsage/SpecialGlobalUsage.php
@@ -130,11 +130,11 @@
131131 $guHtml .= "\t<li>" . self::formatItem( $item ) . "</li>\n";
132132 $guHtml .= "</ul></li>\n";
133133 }
134 -
 134+
135135 if ( $guHtml ) {
136 - $html .= "<h2>" . wfMsgHtml( 'globalusage' ) . "</h2>\n"
137 - . wfMsgExt( 'globalusage-of-file', 'parse' )
138 - . "<ul>\n" . $guHtml . "</ul>\n";
 136+ $html .= Html::rawElement( 'h2', array( 'class' => 'mw-globalusage-list' ), wfMsgHtml( 'globalusage' ) ) . "\n" .
 137+ wfMsgExt( 'globalusage-of-file', 'parse' ) .
 138+ Html::rawElement( 'ul', array(), $guHtml ) . "\n";
139139 if ( $query->hasMore() )
140140 $html .= wfMsgExt( 'globalusage-more', 'parse', $targetName );
141141 }

Comments

#Comment by Bryan (talk | contribs)   13:21, 2 December 2009

Disappeared somewhere in a follow up.

Status & tagging log