Show
Ignore:
Timestamp:
05/13/08 00:11:27 (6 months ago)
Author:
sidtheduck
Message:

+ updating code for ticket #78 - truncating md5 hash to first 2 characters. This *should* be unique enough for the import thumbnail filenames.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/admin/plog-import.php

    r538 r539  
    102102                                                        $imported++; 
    103103                                                        // delete thumbnail file if it exists 
    104                                                         $thumbpath = $config['basedir'] . 'thumbs/import-'.$file_key.'-'.basename($file_name); 
     104                                                        $thumbpath = $config['basedir'] . 'thumbs/import-'.substr($file_key,0,2).'-'.basename($file_name); 
    105105                                                        if (is_file($thumbpath) && is_readable($thumbpath)) 
    106106                                                        {