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:
parent
dcf97d6b5b
commit
80804b9df6
4
post.php
4
post.php
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user