r40786 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40785‎ | r40786 | r40787 >
Date:16:00, 13 September 2008
Author:aaron
Status:old
Tags:
Comment:
$msg not defined...use $text?
Modified paths:
  • /trunk/phase3/includes/db/Database.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/db/Database.php
@@ -2521,13 +2521,13 @@
25222522 $cache = new HTMLFileCache( $t );
25232523 if( $cache->isFileCached() ) {
25242524 // @todo, FIXME: $msg is not defined on the next line.
2525 - $msg = '<p style="color: red"><b>'.$msg."<br />\n" .
 2525+ $msg = '<p style="color: red"><b>'.$text."<br />\n" .
25262526 $cachederror . "</b></p>\n";
25272527
25282528 $tag = '<div id="article">';
25292529 $text = str_replace(
25302530 $tag,
2531 - $tag . $msg,
 2531+ $tag . $text,
25322532 $cache->fetchPageText() );
25332533 }
25342534 }