* @author Rob Church <robchur@gmail.com>
*/
-$optionsWithArgs = array( 'extensions', 'comment-file', 'comment-ext' );
+$optionsWithArgs = array( 'extensions', 'comment', 'comment-file', 'comment-ext', 'user', 'license' );
require_once( 'commandLine.inc' );
require_once( 'importImages.inc.php' );
$added = $skipped = $overwritten = 0;
$base = wfBaseName( $file );
# Validate a title
- $title = Title::makeTitleSafe( NS_IMAGE, $base );
+ $title = Title::makeTitleSafe( NS_FILE, $base );
if( !is_object( $title ) ) {
echo( "{$base} could not be imported; a valid title cannot be produced\n" );
continue;