diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /maintenance/undelete.php | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'maintenance/undelete.php')
-rw-r--r-- | maintenance/undelete.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/maintenance/undelete.php b/maintenance/undelete.php index 7213d096..1c3b14a5 100644 --- a/maintenance/undelete.php +++ b/maintenance/undelete.php @@ -44,6 +44,9 @@ class Undelete extends Maintenance { $this->error( "Invalid title", true ); } $wgUser = User::newFromName( $user ); + if ( !$wgUser ) { + $this->error( "Invalid username", true ); + } $archive = new PageArchive( $title ); $this->output( "Undeleting " . $title->getPrefixedDBkey() . '...' ); $archive->undelete( array(), $reason ); |