r17050 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17049‎ | r17050 | r17051 >
Date:06:24, 16 October 2006
Author:brion
Status:old
Tags:
Comment:
Avoid new CSS class and id names without mw prefix to avoid conflicts with user data.
Modified paths:
  • /trunk/phase3/includes/CategoryPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/CategoryPage.php
@@ -236,7 +236,7 @@
237237 $r = '';
238238 if( count( $this->children ) > 0 ) {
239239 # Showing subcategories
240 - $r .= "<div id=\"subcategories\">\n";
 240+ $r .= "<div id=\"mw-subcategories\">\n";
241241 $r .= '<h2>' . wfMsg( 'subcategories' ) . "</h2>\n";
242242 $r .= wfMsgExt( 'subcategorycount', array( 'parse' ), count( $this->children) );
243243 $r .= $this->formatList( $this->children, $this->children_start_char );
@@ -247,7 +247,7 @@
248248
249249 function getPagesSection() {
250250 $ti = htmlspecialchars( $this->title->getText() );
251 - $r = "<div id=\"pages\">\n";
 251+ $r = "<div id=\"mw-pages\">\n";
252252 $r .= '<h2>' . wfMsg( 'category_header', $ti ) . "</h2>\n";
253253 $r .= wfMsgExt( 'categoryarticlecount', array( 'parse' ), count( $this->articles) );
254254 $r .= $this->formatList( $this->articles, $this->articles_start_char );