aboutsummaryrefslogtreecommitdiffstats
path: root/admin/images
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/images
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 '')
-rw-r--r--admin/images/daily_stats.img.php2
-rw-r--r--admin/images/global_stats.img.php2
-rw-r--r--admin/images/monthly_stats.img.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/admin/images/daily_stats.img.php b/admin/images/daily_stats.img.php
index 89a28e000..e5d320e86 100644
--- a/admin/images/daily_stats.img.php
+++ b/admin/images/daily_stats.img.php
@@ -116,7 +116,7 @@ if ($outputFormat == "png")
header("Content-type: image/png");
ImagePNG($image);
}
-else if ($outputFormat == "jpg")
+else if (in_array($outputFormat, array("jpg", "jpeg")))
{
header("Content-type: image/jpeg");
Imagejpeg($image);
diff --git a/admin/images/global_stats.img.php b/admin/images/global_stats.img.php
index 99124f939..557067e42 100644
--- a/admin/images/global_stats.img.php
+++ b/admin/images/global_stats.img.php
@@ -116,7 +116,7 @@ if ($outputFormat == "png")
header("Content-type: image/png");
ImagePNG($image);
}
-else if ($outputFormat == "jpg")
+else if (in_array($outputFormat, array("jpg", "jpeg")))
{
header("Content-type: image/jpeg");
Imagejpeg($image);
diff --git a/admin/images/monthly_stats.img.php b/admin/images/monthly_stats.img.php
index 3a3c0e143..5ad3b0f55 100644
--- a/admin/images/monthly_stats.img.php
+++ b/admin/images/monthly_stats.img.php
@@ -116,7 +116,7 @@ if ($outputFormat == "png")
header("Content-type: image/png");
ImagePNG($image);
}
-else if ($outputFormat == "jpg")
+else if (in_array($outputFormat, array("jpg", "jpeg")))
{
header("Content-type: image/jpeg");
Imagejpeg($image);