MediaWiki master
LocalFileLockError.php
Go to the documentation of this file.
1<?php
22
29
35 public function __construct( Status $status ) {
36 parent::__construct(
37 'actionfailed',
38 $status->getMessage()
39 );
40 }
41
42 public function report( $action = self::SEND_OUTPUT ) {
43 global $wgOut;
44 $wgOut->setStatusCode( 429 );
45 parent::report( $action );
46 }
47}
if(!defined( 'MW_NO_SESSION') &&MW_ENTRY_POINT !=='cli' $wgOut
Definition Setup.php:568
An error page which can definitely be safely rendered using the OutputPage.
__construct(Status $status)
report( $action=self::SEND_OUTPUT)
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition Status.php:54
getMessage( $shortContext=false, $longContext=false, $lang=null)
Get a bullet list of the errors as a Message object.
Definition Status.php:256