Note incorrect docs in DefaultSettings.php
[lhc/web/wiklou.git] / maintenance / importImages.php
index a39c502..4c6082b 100644 (file)
@@ -9,7 +9,7 @@
  * @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;
@@ -63,7 +63,7 @@ if( count( $args ) > 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;