X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fexception%2FThrottledError.php;h=cdeb402a73300731b6e062bbcc71c89a0a72cce1;hp=ce5d52e659a62afb268218649cfe30c73c751073;hb=11e3172c0382b5d69f63fa641be062b168f4047f;hpb=c2665e4b6e615c80e4126f1ff343e7f9f3018dcc diff --git a/includes/exception/ThrottledError.php b/includes/exception/ThrottledError.php index ce5d52e659..cdeb402a73 100644 --- a/includes/exception/ThrottledError.php +++ b/includes/exception/ThrottledError.php @@ -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 ); } }