BUG#1860 - Anchors of interwiki links did not get normalized
[lhc/web/wiklou.git] / maintenance / update.php
1 <?php
2 /**
3 * Run all updaters.
4 *
5 * @todo document
6 * @package MediaWiki
7 * @subpackage Maintenance
8 */
9
10 /** */
11 require_once( "commandLine.inc" );
12 require_once( "updaters.inc" );
13 $wgTitle = Title::newFromText( "MediaWiki database updater" );
14 $wgDatabase = Database::newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpassword, $wgDBname );
15
16 print "Going to run database updates for $wgDBname\n";
17 print "Depending on the size of your database this may take a while!\n";
18 print "Abort with control-c in the next five seconds to aboard.. ";
19
20 for ($i = 5; $i >= 0; --$i) {
21 echo $i;
22 sleep(1);
23 echo( ($i == 0) ? "\n" : chr(8) );
24 }
25
26 do_all_updates();
27
28 print "Done.\n";
29
30 ?>