diff options
Diffstat (limited to 'maintenance/importImages.php')
-rw-r--r-- | maintenance/importImages.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/maintenance/importImages.php b/maintenance/importImages.php index 2cf8bd19..abf0ec09 100644 --- a/maintenance/importImages.php +++ b/maintenance/importImages.php @@ -30,7 +30,9 @@ if( count( $args ) > 1 ) { $wgUser = User::newFromName( $options['user'] ); } else { $wgUser = User::newFromName( 'Image import script' ); - $wgUser->setLoaded( true ); + } + if ( $wgUser->isAnon() ) { + $wgUser->addToDatabase(); } # Get the upload comment @@ -119,4 +121,4 @@ END; exit(); } -?>
\ No newline at end of file +?> |