aboutsummaryrefslogtreecommitdiffstats
path: root/admin/thumbnail.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-12-04 22:08:35 +0000
committerrub <rub@piwigo.org>2006-12-04 22:08:35 +0000
commitaf138fa6311ac686ec7f256788eb2a07784ac215 (patch)
tree2cbbf52869c170739c7e276c24c31ccf0fadc770 /admin/thumbnail.php
parent7638575de3179edbada18b1a7bcc6c492d07c651 (diff)
Fixed Issue ID 0000593: *.jpeg support in PWG
git-svn-id: http://piwigo.org/svn/trunk@1635 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/thumbnail.php')
-rw-r--r--admin/thumbnail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/thumbnail.php b/admin/thumbnail.php
index 594125a84..543b589cc 100644
--- a/admin/thumbnail.php
+++ b/admin/thumbnail.php
@@ -51,7 +51,7 @@ function RatioResizeImg($path, $newWidth, $newHeight, $tn_ext)
// extension of the picture filename
$extension = get_extension($filename);
- if ($extension == 'jpg' or $extension == 'JPG')
+ if (in_array($extension, array('jpg', 'JPG', 'jpeg', 'JPEG')))
{
$srcImage = @imagecreatefromjpeg($path);
}