mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Merge pull request #1107 from YJSoft/devel-pngprofile
잘못 사용한 IMG 상수를 IMAGETYPE 상수로 교체
This commit is contained in:
commit
c7b89a64fd
1 changed files with 3 additions and 3 deletions
|
|
@ -719,9 +719,9 @@ class memberController extends member
|
|||
|
||||
// Get file information
|
||||
list($width, $height, $type, $attrs) = @getimagesize($target_file);
|
||||
if(IMG_PNG == $type) $ext = 'png';
|
||||
elseif(IMG_JPG == $type) $ext = 'jpg';
|
||||
elseif(IMG_GIF == $type) $ext = 'gif';
|
||||
if(IMAGETYPE_PNG == $type) $ext = 'png';
|
||||
elseif(IMAGETYPE_JPEG == $type) $ext = 'jpg';
|
||||
elseif(IMAGETYPE_GIF == $type) $ext = 'gif';
|
||||
else
|
||||
{
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue