Update theme.php (#409)

fixed hardcoded root that broke spoilered images on the catalog if vichan was not installed on the web root.
This commit is contained in:
PVNFU-28 2022-08-20 13:21:42 -03:00 committed by GitHub
parent 2d1420b763
commit b5eee58b96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,7 +87,7 @@
}
}
else if($files[0]->thumb == 'spoiler') {
$post['file'] = '/' . $config['spoiler_image'];
$post['file'] = $config['root'] . $config['spoiler_image'];
}
else {
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;