fixed incorrect use of text->boolean conversion
[mediawiki.git] / maintenance / update.php
blob41d9e9ca1aa30dc7c012b6ea7cb9ed6dc5c0bcc2
1 <?php
2 /**
3 * Run all updaters.
5 * @todo document
6 * @package MediaWiki
7 * @subpackage Maintenance
8 */
10 /** */
11 $options = array( 'quick' );
12 require_once( "commandLine.inc" );
13 require_once( "updaters.inc" );
14 $wgTitle = Title::newFromText( "MediaWiki database updater" );
15 $wgDatabase = Database::newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
17 print "Going to run database updates for $wgDBname\n";
18 print "Depending on the size of your database this may take a while!\n";
20 if( !isset( $options['quick'] ) ) {
21 print "Abort with control-c in the next five seconds... ";
23 for ($i = 5; $i >= 0; --$i) {
24 echo $i;
25 sleep(1);
26 echo( ($i == 0) ? "\n" : chr(8) );
30 do_all_updates();
32 print "Done.\n";