Revision: 43657
Author:   demon
Date:     2008-11-18 02:03:44 +0000 (Tue, 18 Nov 2008)

Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/phase3/includes/filerepo/ForeignAPIRepo.php

Modified: trunk/phase3/includes/filerepo/ForeignAPIRepo.php
===================================================================
--- trunk/phase3/includes/filerepo/ForeignAPIRepo.php   2008-11-18 01:24:56 UTC 
(rev 43656)
+++ trunk/phase3/includes/filerepo/ForeignAPIRepo.php   2008-11-18 02:03:44 UTC 
(rev 43657)
@@ -130,7 +130,7 @@
                        // 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);
                        }



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to