Bit of path cleanup per comments on code review (r43316). Construct proper hash paths...
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 18 Nov 2008 02:03:44 +0000 (02:03 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 18 Nov 2008 02:03:44 +0000 (02:03 +0000)
includes/filerepo/ForeignAPIRepo.php

index b1c442b..b4b08e8 100644 (file)
@@ -130,7 +130,7 @@ class ForeignAPIRepo extends FileRepo {
                        // We need the same filename as the remote one :)
                        $fileName = ltrim( substr( $foreignUrl, strrpos( $foreignUrl, '/' ),
                                                                strlen ( $foreignUrl ) ), '/' );
-                       $path = 'thumb/' . $this->getHashPath( $this->getName() );
+                       $path = 'thumb/' . $this->getHashPath( $name ) . $name . "/";
                        if ( !is_dir($wgUploadDirectory . '/' . $path) ) {
                                wfMkdirParents($wgUploadDirectory . '/' . $path);
                        }