MediaWiki
REL1_40
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:223
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 Thu Jun 27 2024 14:02:43 for MediaWiki by
1.10.0