From 8d384221f95778f1bec5e1136ff9c8a07c471955 Mon Sep 17 00:00:00 2001 From: leandre Date: Fri, 22 Aug 2014 14:58:24 +0800 Subject: [PATCH] fix bug --- initphp/library/image.init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/initphp/library/image.init.php b/initphp/library/image.init.php index 22dc1f7..6767c2c 100644 --- a/initphp/library/image.init.php +++ b/initphp/library/image.init.php @@ -158,7 +158,7 @@ private function get_water_postion($position, $source_width, $source_height, $wa * @return bool */ private function make($type, $image, $filename, $quality = '75') { - $file_type = ($type !== 'jpeg') ? $type : 'jpg'; + $file_type = ($type !== 'jpg') ? $type : 'jpeg'; $filename = $filename . '.' . $file_type; $this->createFolder(dirname($filename)); //创建目录 $makeimage = 'image' . $type; @@ -226,4 +226,4 @@ public static function createFolder($path) { @chmod($path . '/index.html', 0777); } } -} \ No newline at end of file +}