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

  • mguydish
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 10 months 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
10 years 10 months 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
10 years 3 weeks 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
10 years 3 weeks 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.258 seconds
Powered by Kunena Forum