MediaWiki master
ThrottledError.php
Go to the documentation of this file.
1<?php
29
33 public function __construct() {
34 parent::__construct(
35 'actionthrottled',
36 'actionthrottledtext'
37 );
38 }
39
40 public function report( $action = ErrorPageError::SEND_OUTPUT ) {
41 global $wgOut;
42 $wgOut->setStatusCode( 429 );
43 parent::report( $action );
44 }
45}
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
Definition Setup.php:536
An error page which can definitely be safely rendered using the OutputPage.
Show an error when the user hits a rate limit.
report( $action=ErrorPageError::SEND_OUTPUT)