From 47e81b7e9bedeb79d8f95ff2677ec12b543b9297 Mon Sep 17 00:00:00 2001 From: 8chan Date: Mon, 6 Oct 2014 18:02:50 -0700 Subject: [PATCH] Fix spoiler image not working --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 80776211..cb04a6ca 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -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