From 8c84c3879b659501e055a41a921f09f29ff6fc2f Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 7 Apr 2012 19:39:43 +0100 Subject: [PATCH] parent::report() returns nothing, so don't attempt to return its value Change-Id: Id506d51818bf101a68fe8b028df2062ed221cdf9 --- includes/Exception.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/Exception.php b/includes/Exception.php index e7700b51cf..c75da5a74e 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -270,7 +270,6 @@ class ErrorPageError extends MWException { function report() { global $wgOut; - $wgOut->showErrorPage( $this->title, $this->msg, $this->params ); $wgOut->output(); } @@ -373,7 +372,7 @@ class ThrottledError extends ErrorPageError { public function report(){ global $wgOut; $wgOut->setStatusCode( 503 ); - return parent::report(); + parent::report(); } } -- 2.20.1