Bugfix: $config['file_thumb'] being used incorrectly

This commit is contained in:
Michael Foster 2013-08-18 20:53:01 +10:00
parent dcf97d6b5b
commit 80804b9df6

View File

@ -594,7 +594,9 @@ if (isset($_POST['delete'])) {
//copy($config['file_thumb'], $post['thumb']); //copy($config['file_thumb'], $post['thumb']);
$post['thumb'] = 'file'; $post['thumb'] = 'file';
$size = @getimagesize($config['file_thumb']); $size = @getimagesize(sprintf($config['file_thumb'],
isset($config['file_icons'][$post['extension']]) ?
$config['file_icons'][$post['extension']] : $config['file_icons']['default']));
$post['thumbwidth'] = $size[0]; $post['thumbwidth'] = $size[0];
$post['thumbheight'] = $size[1]; $post['thumbheight'] = $size[1];
} }