Fix url/filenames names include extra period for filename extension (#141)

This commit is contained in:
Tobias Reich 2014-04-26 17:05:42 +02:00
parent bb1699402c
commit 24de0b994d

View File

@ -84,7 +84,7 @@ class Photo extends Module {
while(strlen($id)<14) $id .= 0; while(strlen($id)<14) $id .= 0;
$tmp_name = $file['tmp_name']; $tmp_name = $file['tmp_name'];
$photo_name = md5($id) . ".$extension"; $photo_name = md5($id) . $extension;
$path = LYCHEE_UPLOADS_BIG . $photo_name; $path = LYCHEE_UPLOADS_BIG . $photo_name;
# Import if not uploaded via web # Import if not uploaded via web