summaryrefslogtreecommitdiff
path: root/maintenance/dumpInterwiki.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/dumpInterwiki.php')
-rw-r--r--maintenance/dumpInterwiki.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/maintenance/dumpInterwiki.php b/maintenance/dumpInterwiki.php
new file mode 100644
index 00000000..411260ac
--- /dev/null
+++ b/maintenance/dumpInterwiki.php
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Rebuild interwiki table using the file on meta and the language list
+ * Wikimedia specific!
+ * @todo document
+ * @package MediaWiki
+ * @subpackage 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();
+?>