hotfix for undefined variable
[mediawiki.git] / maintenance / cleandb.php
blobdade09e493c4b3604a8c856c80075555a6daf6d3
1 <?php
2 /**
3 * Creating a new empty database; either this or the conversion
4 * script from the old format needs to be run, but not both.
6 * @package MediaWiki
7 * @subpackage Maintenance
8 */
10 /** */
11 $wgCommandLineMode = true;
12 require_once( "../LocalSettings.php" );
14 $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
15 ini_set( "include_path", "$IP$sep$include_path" );
17 require_once( "Setup.php" );
19 $wgTitle = Title::newFromText( "Database creation script" );
20 require_once( "./buildTables.inc" );
21 set_time_limit(0);
23 #$wgDBname = "wikidb";
24 #$wgDBuser = "wikiadmin";
25 #$wgDBpassword = "adminpass";
27 cleanDatabase();
28 initializeTables();
30 print "Done.\n";
31 exit();