mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
adjust text for getting image dimensions as well as not suppressing warnings for getimagesize()
git-svn-id: file:///svn/phpbb/trunk@6973 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -358,7 +358,7 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
|
||||
|
||||
// If this error occurs a user tried to exploit an IE Bug by renaming extensions
|
||||
// Since the image category is displaying content inline we need to catch this.
|
||||
trigger_error($user->lang['UNABLE_GET_IMAGE_SIZE']);
|
||||
trigger_error($user->lang['ATTACHED_IMAGE_NOT_IMAGE']);
|
||||
}
|
||||
|
||||
// Do we have to create a thumbnail?
|
||||
@@ -552,7 +552,7 @@ function create_thumbnail($source, $destination, $mimetype)
|
||||
return false;
|
||||
}
|
||||
|
||||
list($width, $height, $type, ) = @getimagesize($source);
|
||||
list($width, $height, $type, ) = getimagesize($source);
|
||||
|
||||
if (!$width || !$height)
|
||||
{
|
||||
|
Reference in New Issue
Block a user