mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Always use imagecreatetruecolor(), we're not using PHP 4.0 anymore :)
This commit is contained in:
parent
aeba5b2192
commit
adb6203f1b
1 changed files with 1 additions and 10 deletions
|
|
@ -632,16 +632,7 @@ class FileHandler
|
|||
}
|
||||
|
||||
// create temporary image with target size
|
||||
$thumb = NULL;
|
||||
if(function_exists('imagecreateTRUEcolor'))
|
||||
{
|
||||
$thumb = imagecreateTRUEcolor($resize_width, $resize_height);
|
||||
}
|
||||
else if(function_exists('imagecreate'))
|
||||
{
|
||||
$thumb = imagecreate($resize_width, $resize_height);
|
||||
}
|
||||
|
||||
$thumb = imagecreatetruecolor($resize_width, $resize_height);
|
||||
if(!$thumb)
|
||||
{
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue