Patient photo fix

cbezuidenhout wrote on Thursday, February 09, 2012:

Hi small bug in the patient dashboard,

if the photo extension is in lowercase all is good, but if the extension is in uppercase, the image doesn’t display.

interface/patient_file/summary/demographics.php line : 91
change :

$viewable_types = array('.png','.jpg','.jpeg','.png','.bmp'); // image ext supported by fancybox viewer

to

$viewable_types = array('.png','.jpg','.jpeg','.png','.bmp','.PNG','.JPG','.JPEG','.PNG','.BMP'); // image ext supported by fancybox viewer

and it seems fine,

I have put on GIT here :
https://github.com/tajemo/openemr/commit/aaf42bd9470ca7ca291454296c896162140997bd

  - Craig
    Tajemo Enterprises

bradymiller wrote on Thursday, February 09, 2012:

Hi,
Thanks for the bug fix. Committed this to sourceforge.
-brady

yehster wrote on Thursday, February 09, 2012:

https://github.com/tajemo/openemr/commit/aaf42bd9470ca7ca291454296c896162140997bd

Added my 2 cents in a comment.  Not a big deal, just a suggestion.