Fix for capital letter extensions .JPG, .GIF, .PNG

More
12 years 1 week ago #35093 by mguydish
I am a filename purist (no capitals or spaces), however, is there a plan to update Hot Joomla Gallery default.php line 98 to something like the following fix for recognizing capital extension characters?:

if (strpos($file, 'JPG') !== false || strpos($file, 'jpg') !== false || strpos($file, 'PNG') !== false || strpos($file, 'png') !== false || strpos($file, 'GIF') !== false || strpos($file, 'gif') !== false) {


OR

if (strpos(strtolower($file), 'jpg') !== false || strpos(strtolower($file), 'png') !== false || strpos(strtolower($file), 'gif') !== false) {

?

Please Log in to join the conversation.

More
12 years 1 week ago #35101 by ivan.milic
You have an point, code would be better eater with strtolower or with stripos although we did not have problem with that ever. Thanks for your suggestion.

Please Log in to join the conversation.

More
11 years 3 months ago #41665 by kristinemelby
I've got no problem at all after i disable and enable it.

Please Log in to join the conversation.

More
11 years 3 months ago #41670 by ivan.milic
Replied by ivan.milic on topic Not Show Menu
Can you be more specific

Please Log in to join the conversation.

Time to create page: 0.325 seconds
Powered by Kunena Forum