Permalink
Browse files

Extension for thumbnails is case insensitive.

  • Loading branch information...
John
John committed Dec 30, 2012
1 parent cb8e97a commit b956b82959bc4cfb39fd06176add1825f4302ec6
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib.php
View
@@ -342,7 +342,7 @@ function slideshow_get_thumbnail_path($context) {
foreach ($file_records as $file_record) {
// check only image files
- if ( preg_match("/\.jpe?g$/", $file_record->filename) || preg_match("/\.gif$/", $file_record->filename) || preg_match("/\.png$/", $file_record->filename)) {
+ if ( preg_match("/\.jpe?g$/i", $file_record->filename) || preg_match("/\.gif$/i", $file_record->filename) || preg_match("/\.png$/i", $file_record->filename)) {
$showdir = $file_record->filepath;
$extension = pathinfo($file_record->filename, PATHINFO_EXTENSION);
}

0 comments on commit b956b82

Please sign in to comment.