MediaWiki master
ReadOnlyError.php
Go to the documentation of this file.
1<?php
22
32
36 public function __construct() {
37 $reason = MediaWikiServices::getInstance()->getReadOnlyMode()->getReason();
38 parent::__construct(
39 'readonly',
40 'readonlytext',
41 $reason ? [ $reason ] : []
42 );
43 }
44}
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...