Let crazy people run updates on broken setups like 5.3.1
[lhc/web/wiklou.git] / maintenance / dumpInterwiki.php
index 91cdbe8..154720a 100644 (file)
@@ -6,20 +6,21 @@
  * @file
  * @todo document
  * @ingroup Maintenance
+ * @ingroup Wikimedia
  */
 
 /** */
 $oldCwd = getcwd();
 
 $optionsWithArgs = array( "o" );
-include_once( "commandLine.inc" );
-include_once( "dumpInterwiki.inc" );
+require_once( dirname(__FILE__) . '/commandLine.inc' );
+require( "dumpInterwiki.inc" );
 chdir( $oldCwd );
 
 # Output
 if ( isset( $options['o'] ) ) {
     # To database specified with -o
-    $dbFile = dba_open( $options['o'], "n", "cdb_make" );
+    $dbFile = CdbWriter::open( $options['o'] );
 } 
 
 getRebuildInterwikiDump();