r61242 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61241‎ | r61242 | r61243 >
Date:06:08, 19 January 2010
Author:nad
Status:deferred
Tags:
Comment:
reset striping classes on heading rows
Modified paths:
  • /trunk/extensions/RecordAdmin/RecordAdmin_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php
@@ -512,9 +512,11 @@
513513 $stripe = '';
514514 foreach ( $records as $r ) {
515515 $stripe = $stripe ? '' : ' class="stripe"';
516 - $table .= "<tr$stripe>";
517 - if ( !is_array( $r ) ) $table .= $r; # Just add as HTML content if not a row
518 - else {
 516+ if ( !is_array( $r ) ) {
 517+ $stripe = '';
 518+ $table .= "<tr>$r</tr>"; # Just add as HTML content if not a row
 519+ } else {
 520+ $table .= "<tr$stripe>";
519521
520522 # Create special values for this row
521523 $tsc = $this->formatDate( $r['created'] );
@@ -555,8 +557,8 @@
556558 $table .= "$row[$col]\n";
557559 }
558560 }
 561+ $table .= "</tr>\n";
559562 }
560 - $table .= "</tr>\n";
561563 }
562564 $table .= "</table>\n";
563565

Status & tagging log