MediaWiki
master
ReadOnlyError.php
Go to the documentation of this file.
1
<?php
21
use
MediaWiki\MediaWikiServices
;
22
31
class
ReadOnlyError
extends
ErrorPageError
{
32
36
public
function
__construct
() {
37
$reason = MediaWikiServices::getInstance()->getReadOnlyMode()->getReason();
38
parent::__construct(
39
'readonly'
,
40
'readonlytext'
,
41
$reason ? [ $reason ] : []
42
);
43
}
44
}
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition
ErrorPageError.php:33
MediaWiki\MediaWikiServices
Service locator for MediaWiki core services.
Definition
MediaWikiServices.php:240
ReadOnlyError
Show an error when the wiki is locked/read-only and the user tries to do something that requires writ...
Definition
ReadOnlyError.php:31
ReadOnlyError\__construct
__construct()
Definition
ReadOnlyError.php:36
includes
exception
ReadOnlyError.php
Generated on Fri Oct 4 2024 15:23:40 for MediaWiki by
1.10.0