exception: Let MediaWiki.php control final output for ErrorPageError
[lhc/web/wiklou.git] / includes / exception / ThrottledError.php
index ce5d52e..cdeb402 100644 (file)
@@ -32,9 +32,9 @@ class ThrottledError extends ErrorPageError {
                );
        }
 
-       public function report() {
+       public function report( $action = ErrorPageError::SEND_OUTPUT ) {
                global $wgOut;
-               $wgOut->setStatusCode( 503 );
-               parent::report();
+               $wgOut->setStatusCode( 429 );
+               parent::report( $action );
        }
 }