MediaWiki  master
ReadOnlyError.php
Go to the documentation of this file.
1 <?php
30 
34  public function __construct() {
35  parent::__construct(
36  'readonly',
37  'readonlytext',
38  wfReadOnlyReason() ?: []
39  );
40  }
41 }
ReadOnlyError
Show an error when the wiki is locked/read-only and the user tries to do something that requires writ...
Definition: ReadOnlyError.php:29
ReadOnlyError\__construct
__construct()
Stable to call.
Definition: ReadOnlyError.php:34
wfReadOnlyReason
wfReadOnlyReason()
Check if the site is in read-only mode and return the message if so.
Definition: GlobalFunctions.php:1138
ErrorPageError
An error page which can definitely be safely rendered using the OutputPage.
Definition: ErrorPageError.php:30