equal
deleted
inserted
replaced
203 { |
203 { |
204 $ext = get_file_extension($files['name'][$i]); |
204 $ext = get_file_extension($files['name'][$i]); |
205 if ( snapr_extension_allowed($ext) ) |
205 if ( snapr_extension_allowed($ext) ) |
206 { |
206 { |
207 // normal image |
207 // normal image |
208 $result = snapr_insert_image($files['tmp_name'][$i], $destfolder); |
208 $result = snapr_insert_image($files['tmp_name'][$i], $destfolder, $files['name'][$i]); |
209 if ( $result !== false ) |
209 if ( $result !== false ) |
210 $idlist[] = $result; |
210 $idlist[] = $result; |
211 } |
211 } |
212 else if ( strtolower($ext) == 'zip' ) |
212 else if ( strtolower($ext) == 'zip' ) |
213 { |
213 { |