plugins/gallery/upload.php
changeset 45 740bbe1f4dd5
parent 44 17cfc3da0dcc
--- a/plugins/gallery/upload.php	Sat Aug 21 23:51:10 2010 -0400
+++ b/plugins/gallery/upload.php	Sun Sep 19 03:51:00 2010 -0400
@@ -205,7 +205,7 @@
 				if ( snapr_extension_allowed($ext) )
 				{
 					// normal image
-					$result = snapr_insert_image($files['tmp_name'][$i], $destfolder);
+					$result = snapr_insert_image($files['tmp_name'][$i], $destfolder, $files['name'][$i]);
 					if ( $result !== false )
 						$idlist[] = $result;
 				}