--conf option for specifying a different LocalSettings.php. This allows multiple...
[lhc/web/wiklou.git] / maintenance / importDump.php
index 15110ff..a5a3c10 100644 (file)
@@ -45,6 +45,7 @@ class BackupReader {
        function handleRevision( $rev ) {
                $title = $rev->getTitle();
                if (!$title) {
+                       $this->progress( "Got bogus revision with null title!" );
                        return;
                }
                $display = $title->getPrefixedText();
@@ -110,6 +111,10 @@ class BackupReader {
        }
 }
 
+if( wfReadOnly() ) {
+       wfDie( "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;