summaryrefslogtreecommitdiff
path: root/maintenance/dumpInterwiki.php
blob: 411260acd86d4685866fddef7779b38cf180e20f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
?>