parent::report() returns nothing, so don't attempt to return its value
authorReedy <reedy@wikimedia.org>
Sat, 7 Apr 2012 18:39:43 +0000 (19:39 +0100)
committerReedy <reedy@wikimedia.org>
Sat, 7 Apr 2012 18:39:43 +0000 (19:39 +0100)
Change-Id: Id506d51818bf101a68fe8b028df2062ed221cdf9

includes/Exception.php

index e7700b5..c75da5a 100644 (file)
@@ -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();
        }
 }