1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-01 18:47:20 +01:00

Fix spoiler image not working

This commit is contained in:
8chan 2014-10-06 18:02:50 -07:00
parent d94bff238e
commit 47e81b7e9b

View File

@ -1588,7 +1588,7 @@ function mod_spoiler_image($board, $post, $file) {
$size_spoiler_image = @getimagesize($config['spoiler_image']);
file_unlink($config['dir']['img_root'] . $board . '/' . $config['dir']['thumb'] . $files[$file]->thumb);
$files[$file]->thumb = 'spoiler';
$files[$file]->thumbwidth = $size_spoiler[0];
$files[$file]->thumbwidth = $size_spoiler_image[0];
$files[$file]->thumbheight = $size_spoiler_image[1];
// Make thumbnail spoiler