code/gl3addresses/gm5attachtmpcontactphoto.rb in rwdaddresses-0.91 vs code/gl3addresses/gm5attachtmpcontactphoto.rb in rwdaddresses-0.92
- old
+ new
@@ -5,10 +5,10 @@
end
if $currentnametext
tmpcontactphotoName = $tmpphoto_directory + "/" + @a_tmpphotoname
begin
if File.exist?(tmpcontactphotoName)
- newcontactphotoName = $tmpphoto_directory + "/" + $currentnametext + ".png"
+ newcontactphotoName = $tmpphoto_directory + "/" + $currentnametext + ".jpg"
if ! (tmpcontactphotoName == newcontactphotoName )
File.rename(tmpcontactphotoName, newcontactphotoName)
end
@listphotosfromtmp = "Photo attached"
FileUtils.cp(newcontactphotoName , $addressfiles_directory)