Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).
[lhc/web/wiklou.git] / maintenance / importImages.php
index c2e4e2b..4c6082b 100644 (file)
@@ -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;