From 4da8ccdbdf2a93b1084dd3793d44c20867cfcd38 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 5 Dec 2003 10:55:50 +0000 Subject: [PATCH] Disallow rollback during read-only mode --- includes/Article.php | 4 ++++ 1 file changed, 4 insertions(+) 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() ); -- 2.20.1