r84838 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84837‎ | r84838 | r84839 >
Date:05:18, 27 March 2011
Author:nad
Status:deferred
Tags:
Comment:
var needed in template rendering
Modified paths:
  • /trunk/extensions/RecordAdmin/RecordAdmin_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php
@@ -424,6 +424,7 @@
425425 $table .= "<tr>$r</tr>"; # Just add as HTML content if not a row
426426 } else {
427427 $table .= "<tr$stripe>";
 428+ $sel = "<input type='checkbox' name='{$name}[]' value='$col' checked />";
428429 if( $template ) {
429430 $text = array_shift( $prows );
430431 $text = preg_replace( "|&lt;(/?td.*?)&gt;|", "<$1>", $text );
@@ -436,7 +437,6 @@
437438 $u = $t->getLocalURL();
438439 $col = $r['title'];
439440 $ecol = urlencode( $col );
440 - $sel = "<input type='checkbox' name='{$name}[]' value='$col' checked />";
441441 $row = array(
442442 'select' => "<td class='col-select'>$sel</td>\n",
443443 'title' => "<td class='col0 col-title'><a href='$u'>$col</a></td>",

Status & tagging log