From 0136242734c7c35b95da48033d7013387c418678 Mon Sep 17 00:00:00 2001 From: Huji Lee Date: Mon, 12 Dec 2016 20:23:41 -0500 Subject: [PATCH] Always show exceptions of type 'error' in LTR Bug: T153027 Change-Id: Iad5b9a01f5b8cdaa2ed94b3ece937acc1f6faa60 --- includes/exception/MWExceptionRenderer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", -- 2.20.1