From 24de0b994d3a0671ba2044716942994d488120fa Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 26 Apr 2014 17:05:42 +0200 Subject: [PATCH] Fix url/filenames names include extra period for filename extension (#141) --- php/modules/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/modules/Photo.php b/php/modules/Photo.php index 7b77a4a..42ffc41 100755 --- a/php/modules/Photo.php +++ b/php/modules/Photo.php @@ -84,7 +84,7 @@ class Photo extends Module { while(strlen($id)<14) $id .= 0; $tmp_name = $file['tmp_name']; - $photo_name = md5($id) . ".$extension"; + $photo_name = md5($id) . $extension; $path = LYCHEE_UPLOADS_BIG . $photo_name; # Import if not uploaded via web