From: Alexandre Emsenhuber Date: Thu, 28 Jun 2012 09:52:43 +0000 (+0200) Subject: Send correct HTML when reporting a MWException object and the OuputPage object cannot... X-Git-Tag: 1.31.0-rc.0~23103^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=bc470f366109dd04a87688eb569e2ec32b3aa717;p=lhc%2Fweb%2Fwiklou.git Send correct HTML when reporting a MWException object and the OuputPage object cannot be used. Currently only the body was sent, without doc type, , or items. Change-Id: I2d5cc3f69f55d0e1b212148f57f736f100bd2554 --- diff --git a/includes/Exception.php b/includes/Exception.php index 502f2ade16..6e1325ff50 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -128,10 +128,10 @@ class MWException extends Exception { '

Backtrace:

' . nl2br( htmlspecialchars( $this->getTraceAsString() ) ) . "

\n"; } else { - return + return "
" . '[' . $this->getLogId() . '] ' . - gmdate( 'Y-m-d H:i:s' ) . + gmdate( 'Y-m-d H:i:s' ) . ": Fatal exception of type " . get_class( $this ) . "
\n" . "