Disallow rollback during read-only mode
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 5 Dec 2003 10:55:50 +0000 (10:55 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 5 Dec 2003 10:55:50 +0000 (10:55 +0000)
includes/Article.php

index 305aaf7..4bc527b 100644 (file)
@@ -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() );