function getText() { global $wgShowDBErrorBacktrace; if ($this->useMessageCache()) { $s = wfMsg('dberrortextcl', htmlspecialchars($this->getSQL()), htmlspecialchars($this->fname), $this->errno, htmlspecialchars($this->error)) . "\n"; if ($wgShowDBErrorBacktrace) { $s .= "Backtrace:\n" . $this->getTraceAsString() . "\n"; } return $s; } else { return parent::getText(); } }