r11304 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r11303‎ | r11304 | r11305 >
Date:23:51, 11 October 2005
Author:tomgilder
Status:old
Tags:
Comment:
add class="active" for CSS purposes
Modified paths:
  • /trunk/phase3/skins/MonoBook.php (modified) (history)

Diff [purge]

Index: trunk/phase3/skins/MonoBook.php
@@ -48,7 +48,6 @@
4949 */
5050 function execute() {
5151 // Suppress warnings to prevent notices about missing indexes in $this->data
52 - global $action;
5352 wfSuppressWarnings();
5453
5554 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -132,7 +131,9 @@
133132 <div class='pBody'>
134133 <ul>
135134 <?php foreach($cont as $key => $val) {
136 - echo '<li id="' . htmlspecialchars($val['id']) . '">';
 135+ echo '<li id="' . htmlspecialchars($val['id']) . '"';
 136+ if ( $val['active'] ) echo ' class="active"';
 137+ echo '>';
137138 if ( $val['active'] ) echo '<strong>';
138139 if ( $val['dolink'] ) echo '<a href="' . htmlspecialchars($val['href']) . '">';
139140 echo htmlspecialchars($val['text']);

Status & tagging log