Fix spoiler image not working
This commit is contained in:
parent
f294af104b
commit
c4dc3f4d47
@ -1571,7 +1571,7 @@ function mod_spoiler_image($board, $post, $file) {
|
|||||||
$size_spoiler_image = @getimagesize($config['spoiler_image']);
|
$size_spoiler_image = @getimagesize($config['spoiler_image']);
|
||||||
file_unlink($board . '/' . $config['dir']['thumb'] . $files[$file]->thumb);
|
file_unlink($board . '/' . $config['dir']['thumb'] . $files[$file]->thumb);
|
||||||
$files[$file]->thumb = 'spoiler';
|
$files[$file]->thumb = 'spoiler';
|
||||||
$files[$file]->thumbwidth = $size_spoiler[0];
|
$files[$file]->thumbwidth = $size_spoiler_image[0];
|
||||||
$files[$file]->thumbheight = $size_spoiler_image[1];
|
$files[$file]->thumbheight = $size_spoiler_image[1];
|
||||||
|
|
||||||
// Make thumbnail spoiler
|
// Make thumbnail spoiler
|
||||||
|
Loading…
Reference in New Issue
Block a user