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