MediaWiki  master
ThrottledError.php
Go to the documentation of this file.
1 <?php
28  public function __construct() {
29  parent::__construct(
30  'actionthrottled',
31  'actionthrottledtext'
32  );
33  }
34 
35  public function report() {
36  global $wgOut;
37  $wgOut->setStatusCode( 429 );
38  parent::report();
39  }
40 }
An error page which can definitely be safely rendered using the OutputPage.
$wgOut
Definition: Setup.php:876
Show an error when the user hits a rate limit.