From 54d6d29f88c7204ac954e410995d18d2a5971cf7 Mon Sep 17 00:00:00 2001 From: Reedy Date: Fri, 16 Nov 2012 23:20:58 +0000 Subject: [PATCH] Output special page name before attempting to run function 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/updateSpecialPages.php b/maintenance/updateSpecialPages.php index 3f1a90bb3f..f92f67aa79 100644 --- a/maintenance/updateSpecialPages.php +++ b/maintenance/updateSpecialPages.php @@ -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 ); -- 2.20.1