/** * Output a report about the exception and takes care of formatting. * It will be either HTML or plain text based on isCommandLine(). */ function report() { $log = $this->getLogMessage(); if ($log) { wfDebugLog('exception', $log); } if (self::isCommandLine()) { wfPrintError($this->getText()); } else { $this->reportHTML(); } }
/** * Output a report about the exception and takes care of formatting. * It will be either HTML or plain text based on $wgCommandLineMode. */ function report() { global $wgCommandLineMode; $log = $this->getLogMessage(); if ($log) { wfDebugLog('exception', $log); } if ($wgCommandLineMode) { wfPrintError($this->getText()); } else { $this->reportHTML(); } }