summaryrefslogtreecommitdiff
path: root/maintenance/dumpInterwiki.php
blob: 045e393bfba744cf1b9026f594792875b77cf455 (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
26
27
<?php
/**
 * Rebuild interwiki table using the file on meta and the language list
 * Wikimedia specific!
 *
 * @file
 * @todo document
 * @ingroup Maintenance
 * @ingroup Wikimedia
 */

/** */
$oldCwd = getcwd();

$optionsWithArgs = array( "o" );
require_once( dirname(__FILE__) . '/commandLine.inc' );
require( dirname(__FILE__)."/dumpInterwiki.inc" );
chdir( $oldCwd );

# Output
if ( isset( $options['o'] ) ) {
    # To database specified with -o
    $dbFile = CdbWriter::open( $options['o'] );
} 

getRebuildInterwikiDump();