1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-27 17:00:52 +01:00

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']);
$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['thumbheight'] = $size[1];
}