Fix url/filenames names include extra period for filename extension (#141)
This commit is contained in:
parent
bb1699402c
commit
24de0b994d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user