MediaWiki
REL1_24
|
00001 <?php 00027 class ThrottledError extends ErrorPageError { 00028 public function __construct() { 00029 parent::__construct( 00030 'actionthrottled', 00031 'actionthrottledtext' 00032 ); 00033 } 00034 00035 public function report() { 00036 global $wgOut; 00037 $wgOut->setStatusCode( 429 ); 00038 parent::report(); 00039 } 00040 }