dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3dfaad6
)
rv r87948 "fix backtrace on SQL error"
author
Antoine Musso
<hashar@users.mediawiki.org>
Mon, 30 Jan 2012 17:36:43 +0000
(17:36 +0000)
committer
Antoine 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
patch
|
blob
|
history
diff --git
a/includes/db/DatabaseError.php
b/includes/db/DatabaseError.php
index
0ca7923
..
836d781
100644
(file)
--- 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;