rv r87948 "fix backtrace on SQL error"
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 30 Jan 2012 17:36:43 +0000 (17:36 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 30 Jan 2012 17:36:43 +0000 (17:36 +0000)
Looks unneeded nowaday. Backtrace is correctly appended to HTML output
or CLI output when $wgShowDBErrorBacktrace is true.

Not sure what it was supposed to fix.

includes/db/DatabaseError.php

index 0ca7923..836d781 100644 (file)
@@ -272,10 +272,6 @@ class DBQueryError extends DBError {
                  "Query: $sql\n" .
                  "Function: $fname\n" .
                  "Error: $errno $error\n";
-               global $wgShowDBErrorBacktrace;
-               if( $wgShowDBErrorBacktrace ) {
-                       $message .= $this->getTraceAsString();
-               }
                parent::__construct( $db, $message );
 
                $this->error = $error;