$wgUser = User::newFromName( $options['user'] );
} else {
$wgUser = User::newFromName( 'Image import script' );
- $wgUser->setLoaded( true );
+ }
+ if ( $wgUser->isAnon() ) {
+ $wgUser->addToDatabase();
}
# Get the upload comment
exit();
}
-?>
\ No newline at end of file
+?>