From: Tim Starling Date: Tue, 15 May 2012 04:19:32 +0000 (+1000) Subject: Don't log HttpError X-Git-Tag: 1.31.0-rc.0~23607^2 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=e2aa8b4978a3536d7286554086697361f6036df5;p=lhc%2Fweb%2Fwiklou.git Don't log HttpError Fix for r97314: don't log HttpError exceptions to the exception log channel. Do this by overriding MWException::report() rather than MWException::reportHTML(), same as every other child class in Exception.php. Change-Id: I3fb2b0ca9b0e7c67c210078d1fd90e1430be39df --- diff --git a/includes/Exception.php b/includes/Exception.php index f7b6b964f6..a1e3f1256c 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -462,7 +462,7 @@ class HttpError extends MWException { $this->content = $content; } - public function reportHTML() { + public function report() { $httpMessage = HttpStatus::getMessage( $this->httpCode ); header( "Status: {$this->httpCode} {$httpMessage}" );