* Warn and abort if importDump.php called in read-only mode.
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 5 Oct 2005 01:23:22 +0000 (01:23 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 5 Oct 2005 01:23:22 +0000 (01:23 +0000)
RELEASE-NOTES
maintenance/importDump.php

index fa797aa..5a187dd 100644 (file)
@@ -126,6 +126,7 @@ fully support the editing toolbar, but was found to be too confusing.
   for a place to add in captcha-type extensions in the edit flow
 * Added filter options, compression piping, and multiple output streams for
   dumpBackup.php
+* Warn and abort if importDump.php called in read-only mode.
 
 
 === Caveats ===
index 3a58550..f4e8d3c 100644 (file)
@@ -111,6 +111,10 @@ class BackupReader {
        }
 }
 
+if( wfReadOnly() ) {
+       die( "Wiki is in read-only mode; you'll need to disable it for import to work.\n" );
+}
+
 $reader = new BackupReader();
 if( isset( $options['quiet'] ) ) {
        $reader->reporting = false;