]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blobdiff - maintenance/dumpInterwiki.php
MediaWiki 1.11.0
[autoinstallsdev/mediawiki.git] / maintenance / dumpInterwiki.php
diff --git a/maintenance/dumpInterwiki.php b/maintenance/dumpInterwiki.php
new file mode 100644 (file)
index 0000000..02116a5
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+/**
+ * Rebuild interwiki table using the file on meta and the language list
+ * Wikimedia specific!
+ * @todo document
+ * @addtogroup Maintenance
+ */
+
+/** */
+$oldCwd = getcwd();
+
+$optionsWithArgs = array( "o" );
+include_once( "commandLine.inc" );
+include_once( "dumpInterwiki.inc" );
+chdir( $oldCwd );
+
+# Output
+if ( isset( $options['o'] ) ) {
+    # To database specified with -o
+    $dbFile = dba_open( $options['o'], "n", "cdb_make" );
+} 
+
+getRebuildInterwikiDump();
+