update.php: Fix PHP4 syntax error
authorKevin Israel <pleasestand@live.com>
Tue, 17 Dec 2013 01:13:48 +0000 (20:13 -0500)
committerKevin Israel <pleasestand@live.com>
Tue, 17 Dec 2013 01:24:22 +0000 (20:24 -0500)
PHP4 does not support method chaining, so I broke the line into
two so we can continue to show a more helpful error message in
that version of PHP, which reached EOL just about six years ago.

Also changed "Done. The job took [...]" to "Done in [...]"; "job"
has a specific meaning in MediaWiki that is irrelevant here.

Follows-up fae8daa658c1.

Change-Id: If2480aa24f18d36f33462d874b2a1dd13abb641a

maintenance/update.php

index e01406d..beed720 100644 (file)
@@ -170,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() {