X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fexception%2FHttpError.php;h=48bc3bd4e143385ca5a56705945d97622c38466a;hb=8eac2feedb7ee093d2c48504e1eb2b8a9dbc8452;hp=b910ec629dcbb4bcb7b596614e2222551e1e2797;hpb=23f5395a8c772d8076ef7033aac43945e963e40c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/exception/HttpError.php b/includes/exception/HttpError.php index b910ec629d..48bc3bd4e1 100644 --- a/includes/exception/HttpError.php +++ b/includes/exception/HttpError.php @@ -88,11 +88,11 @@ class HttpError extends MWException { $content = $content->text(); } - $context = array( + $context = [ 'file' => $this->getFile(), 'line' => $this->getLine(), 'http_code' => $this->httpCode, - ); + ]; $logMsg = "$content ({http_code}) from {file}:{line}"; @@ -121,7 +121,7 @@ class HttpError extends MWException { if ( $this->content instanceof Message ) { $contentHtml = $this->content->escaped(); } else { - $contentHtml = htmlspecialchars( $this->content ); + $contentHtml = nl2br( htmlspecialchars( $this->content ) ); } return "\n" .