* Fix function comment in debug dump of SQL statements
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 1 Jun 2005 02:10:29 +0000 (02:10 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 1 Jun 2005 02:10:29 +0000 (02:10 +0000)
I could swear I've fixed this thing several times.

RELEASE-NOTES
includes/Database.php

index 14dbc8f..ab9c2f7 100644 (file)
@@ -231,6 +231,7 @@ Various bugfixes, small features, and a few experimental things:
 * Replace wfMungeToUtf8 and do_html_entity_decode with a single function
   that does both numeric and named chars: Sanitizer::decodeCharReferences
 * Removed some obsolete UTF-8 converter functions
+* Fix function comment in debug dump of SQL statements
 
 
 === Caveats ===
index 8b9858a..0dce6a9 100644 (file)
@@ -309,8 +309,8 @@ class Database {
                }
 
                if ( $this->debug() ) {
-                       $sqlx = substr( $sql, 0, 500 );
-                       $sqlx = strtr($sqlx,"\t\n",'  ');
+                       $sqlx = substr( $commentedSql, 0, 500 );
+                       $sqlx = strtr( $sqlx, "\t\n", '  ' );
                        wfDebug( "SQL: $sqlx\n" );
                }