From: Antoine Musso Date: Mon, 30 Jan 2012 17:36:43 +0000 (+0000) Subject: rv r87948 "fix backtrace on SQL error" X-Git-Tag: 1.31.0-rc.0~25004 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=94bec8ef57c6e97f9e3620bfb17ea607a84b5213;p=lhc%2Fweb%2Fwiklou.git rv r87948 "fix backtrace on SQL error" 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. --- diff --git a/includes/db/DatabaseError.php b/includes/db/DatabaseError.php index 0ca79234b1..836d781480 100644 --- a/includes/db/DatabaseError.php +++ b/includes/db/DatabaseError.php @@ -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;