X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2Fupdate.php;h=beed72089d17302eebc8880478ec3ae340b3a455;hb=6761fa24439534d5c329b798ac1b2b08cdc0e67d;hp=6b08480add3ff8b0301c71ce3c08100d98c421ba;hpb=d459c2afb3928ceea157aa0eaa5230335cbc06ec;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/update.php b/maintenance/update.php index 6b08480add..beed72089d 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -106,6 +106,8 @@ class UpdateMediaWiki extends Maintenance { $wgLang = Language::factory( 'en' ); $wgTitle = Title::newFromText( "MediaWiki database updater" ); + define( 'MW_UPDATER', true ); + $this->output( "MediaWiki {$wgVersion} Updater\n\n" ); wfWaitForSlaves( 5 ); // let's not kill databases, shall we? ;) --tor @@ -168,8 +170,8 @@ class UpdateMediaWiki extends Maintenance { } $time2 = new MWTimestamp(); - $this->output( "\nDone.\n" ); - $this->output( "\nThe job took " . $time2->diff( $time1 )->format( "%i:%S" ) . "\n" ); + $timeDiff = $time2->diff( $time1 ); + $this->output( "\nDone in " . $timeDiff->format( "%i:%S" ) . ".\n" ); } function afterFinalSetup() {