Revert r54244 which was stupid and fix this properly. Require commandLine.inc/Mainten...
[lhc/web/wiklou.git] / maintenance / dumpInterwiki.php
1 <?php
2 /**
3 * Rebuild interwiki table using the file on meta and the language list
4 * Wikimedia specific!
5 *
6 * @file
7 * @todo document
8 * @ingroup Maintenance
9 */
10
11 /** */
12 $oldCwd = getcwd();
13
14 $optionsWithArgs = array( "o" );
15 require_once( dirname(__FILE__) . '/commandLine.inc' );
16 require( "dumpInterwiki.inc" );
17 chdir( $oldCwd );
18
19 # Output
20 if ( isset( $options['o'] ) ) {
21 # To database specified with -o
22 $dbFile = CdbWriter::open( $options['o'] );
23 }
24
25 getRebuildInterwikiDump();
26