Esempio n. 1
0
 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();
     }
 }