From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- maintenance/moveBatch.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'maintenance/moveBatch.php') diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index 9b9f9105..6ecc775e 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -67,6 +67,9 @@ class MoveBatch extends Maintenance { $this->error( "Unable to read file, exiting", true ); } $wgUser = User::newFromName( $user ); + if ( !$wgUser ) { + $this->error( "Invalid username", true ); + } # Setup complete, now start $dbw = wfGetDB( DB_MASTER ); -- cgit v1.2.2