Fix output from autodisable pref script

Report correct number of users and add linebreak.

Bug: T112352
Change-Id: I19cd23ff4c28a83408881c299fb3a3ef42ea305b
This commit is contained in:
Alex Monk 2015-09-30 20:56:28 +01:00
parent 0ec26ef23b
commit 5d3cd8ebbb

View file

@ -52,7 +52,7 @@ class VEAutodisablePref extends Maintenance {
$user->saveSettings();
$lastUserId = $userRow->user_id;
}
$this->output( "Added preference for " . count( $results ) . " users." );
$this->output( "Added preference for " . $results->numRows() . " users.\n" );
wfWaitForSlaves();
} while ( $results->numRows() );
$this->output( "done.\n" );