MediaWiki
REL1_39
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
parent::__construct(
38
'readonly'
,
39
'readonlytext'
,
40
MediaWikiServices::getInstance()->getReadOnlyMode()->getReason() ?: []
41
);
42
}
43
}
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition
ErrorPageError.php:30
MediaWiki\MediaWikiServices
Service locator for MediaWiki core services.
Definition
MediaWikiServices.php:212
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 Dec 20 2024 15:34:13 for MediaWiki by
1.10.0