From: Chad Horohoe Date: Tue, 18 Nov 2008 02:03:44 +0000 (+0000) Subject: Bit of path cleanup per comments on code review (r43316). Construct proper hash paths... X-Git-Tag: 1.31.0-rc.0~44293 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=c051c327550607e6d90f6738a24ca5a6717d1b60;p=lhc%2Fweb%2Fwiklou.git 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. --- 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); }