From: Huji Lee Date: Tue, 13 Dec 2016 01:23:41 +0000 (-0500) Subject: Always show exceptions of type 'error' in LTR X-Git-Tag: 1.31.0-rc.0~4586^2 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=0136242734c7c35b95da48033d7013387c418678;p=lhc%2Fweb%2Fwiklou.git Always show exceptions of type 'error' in LTR Bug: T153027 Change-Id: Iad5b9a01f5b8cdaa2ed94b3ece937acc1f6faa60 --- diff --git a/includes/exception/MWExceptionRenderer.php b/includes/exception/MWExceptionRenderer.php index b600f4203a..a569bcd808 100644 --- a/includes/exception/MWExceptionRenderer.php +++ b/includes/exception/MWExceptionRenderer.php @@ -207,14 +207,14 @@ class MWExceptionRenderer { */ public static function getHTML( $e ) { if ( self::showBackTrace( $e ) ) { - $html = "

" . + $html = "

" . nl2br( htmlspecialchars( MWExceptionHandler::getLogMessage( $e ) ) ) . '

Backtrace:

' . nl2br( htmlspecialchars( MWExceptionHandler::getRedactedTraceAsString( $e ) ) ) . "

\n"; } else { $logId = WebRequest::getRequestId(); - $html = "
" . + $html = "
" . '[' . $logId . '] ' . gmdate( 'Y-m-d H:i:s' ) . ": " . self::msg( "internalerror-fatal-exception",