--list : list special pages names
[lhc/web/wiklou.git] / maintenance / importDump.php
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;