Marked authenticateUserData() as public
[mediawiki.git] / maintenance / rebuildInterwiki.php
blob19e081adbcfa5e7171d247a6cf34302a340fc978
1 <?php
2 /**
3 * Rebuild interwiki table using the file on meta and the language list
4 * Wikimedia specific!
5 * @todo document
6 * @package MediaWiki
7 * @subpackage Maintenance
8 */
10 /** */
11 $oldCwd = getcwd();
13 $optionsWithArgs = array( "o" );
14 include_once( "commandLine.inc" );
15 include_once( "rebuildInterwiki.inc" );
16 chdir( $oldCwd );
18 $sql = getRebuildInterwikiSQL();
20 # Output
21 if ( isset( $options['o'] ) ) {
22 # To file specified with -o
23 $file = fopen( $options['o'], "w" );
24 fwrite( $file, $sql );
25 fclose( $file );
26 } else {
27 # To stdout
28 print $sql;