Output special page name before attempting to run function
authorReedy <reedy@wikimedia.org>
Fri, 16 Nov 2012 23:20:58 +0000 (23:20 +0000)
committerReedy <reedy@wikimedia.org>
Fri, 16 Nov 2012 23:20:58 +0000 (23:20 +0000)
Related to bug 42210, we don't have a blank line, not knowing what it's actually running

QueryPage updates do this already!

Change-Id: I18eb0fb4c316744d92a81f5e64e201508b27eb27

maintenance/updateSpecialPages.php

index 3f1a90b..f92f67a 100644 (file)
@@ -47,10 +47,10 @@ class UpdateSpecialPages extends Maintenance {
                                $this->error( "Uncallable function $call!" );
                                continue;
                        }
+                       $this->output( sprintf( '%-30s ', $special ) );
                        $t1 = explode( ' ', microtime() );
                        call_user_func( $call, $dbw );
                        $t2 = explode( ' ', microtime() );
-                       $this->output( sprintf( '%-30s ', $special ) );
                        $elapsed = ( $t2[0] - $t1[0] ) + ( $t2[1] - $t1[1] );
                        $hours = intval( $elapsed / 3600 );
                        $minutes = intval( $elapsed % 3600 / 60 );