$optionsWithArgs = array( "o" );
include_once( "commandLine.inc" );
include_once( "rebuildInterwiki.inc" );
+chdir( $oldCwd );
$sql = getRebuildInterwikiSQL();
# Output
if ( isset( $options['o'] ) ) {
# To file specified with -o
- chdir( $oldCwd );
$file = fopen( $options['o'], "w" );
fwrite( $file, $sql );
fclose( $file );