* Use the standard SpecialPage method
* Show the error when trying to view the form for a page
Change-Id: I60a939e7d1a1164db2dc90525a750573be75fbcc
}
protected function showHistory() {
+ $this->checkReadOnly();
+
$out = $this->getOutput();
if ( $this->mAllowed ) {
$out->addModules( 'mediawiki.special.undelete' );
throw new ErrorPageError( 'undelete-error', 'filedelete-maintenance' );
}
- if ( wfReadOnly() ) {
- throw new ReadOnlyError;
- }
+ $this->checkReadOnly();
$out = $this->getOutput();
$archive = new PageArchive( $this->mTargetObj, $this->getConfig() );