MediaWiki REL1_39
ReadOnlyError.php
Go to the documentation of this file.
1<?php
22
32
36 public function __construct() {
37 parent::__construct(
38 'readonly',
39 'readonlytext',
40 MediaWikiServices::getInstance()->getReadOnlyMode()->getReason() ?: []
41 );
42 }
43}
An error page which can definitely be safely rendered using the OutputPage.
Service locator for MediaWiki core services.
Show an error when the wiki is locked/read-only and the user tries to do something that requires writ...