https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110308
Revision: 110308 Author: hashar Date: 2012-01-30 17:36:43 +0000 (Mon, 30 Jan 2012) Log Message: ----------- 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. Modified Paths: -------------- trunk/phase3/includes/db/DatabaseError.php Modified: trunk/phase3/includes/db/DatabaseError.php =================================================================== --- trunk/phase3/includes/db/DatabaseError.php 2012-01-30 17:35:20 UTC (rev 110307) +++ trunk/phase3/includes/db/DatabaseError.php 2012-01-30 17:36:43 UTC (rev 110308) @@ -272,10 +272,6 @@ "Query: $sql\n" . "Function: $fname\n" . "Error: $errno $error\n"; - global $wgShowDBErrorBacktrace; - if( $wgShowDBErrorBacktrace ) { - $message .= $this->getTraceAsString(); - } parent::__construct( $db, $message ); $this->error = $error; _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs