Browse Source

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

Tobias Reich 10 years ago
parent
commit
24de0b994d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/modules/Photo.php

+ 1 - 1
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