From: Brion Vibber Date: Fri, 5 Dec 2003 10:55:50 +0000 (+0000) Subject: Disallow rollback during read-only mode X-Git-Tag: 1.1.0~17 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=4da8ccdbdf2a93b1084dd3793d44c20867cfcd38;p=lhc%2Fweb%2Fwiklou.git Disallow rollback during read-only mode --- diff --git a/includes/Article.php b/includes/Article.php index 305aaf7212..4bc527bc1c 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -961,6 +961,10 @@ class Article { $wgOut->sysopRequired(); return; } + if ( wfReadOnly() ) { + $wgOut->readOnlyPage( $this->getContent() ); + return; + } # Replace all this user's current edits with the next one down $tt = wfStrencode( $this->mTitle->getDBKey() );