MediaWiki  master
LocalFileLockError.php
Go to the documentation of this file.
1 <?php
25  public function __construct( Status $status ) {
26  parent::__construct(
27  'actionfailed',
28  $status->getMessage()
29  );
30  }
31 
32  public function report( $action = self::SEND_OUTPUT ) {
33  global $wgOut;
34  $wgOut->setStatusCode( 429 );
35  parent::report( $action );
36  }
37 }
report( $action=self::SEND_OUTPUT)
getMessage( $shortContext=false, $longContext=false, $lang=null)
Get a bullet list of the errors as a Message object.
Definition: Status.php:232
An error page which can definitely be safely rendered using the OutputPage.
__construct(Status $status)
$wgOut
Definition: Setup.php:862