mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
Bugfix: $config['file_thumb'] being used incorrectly
This commit is contained in:
parent
dcf97d6b5b
commit
80804b9df6
6
post.php
6
post.php
@ -593,8 +593,10 @@ if (isset($_POST['delete'])) {
|
||||
// not an image
|
||||
//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