From c051c327550607e6d90f6738a24ca5a6717d1b60 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 18 Nov 2008 02:03:44 +0000 Subject: [PATCH] Bit of path cleanup per comments on code review (r43316). Construct proper hash paths and use the image name as a child directory of that. --- includes/filerepo/ForeignAPIRepo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index b1c442bf6e..b4b08e883e 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -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); } -- 2.20.1