Display placeholder if no file in catalog/theme.php; czaks: fix the code a bit

This commit is contained in:
8chan 2014-12-31 22:37:19 -08:00 committed by czaks
parent cb97029d0d
commit 632d0a76d0
2 changed files with 3 additions and 1 deletions

View File

@ -766,7 +766,7 @@
// Location of thumbnail to use for spoiler images.
$config['spoiler_image'] = 'static/spoiler.png';
// Location of thumbnail to use for deleted images.
// $config['image_deleted'] = 'static/deleted.png';
$config['image_deleted'] = 'static/deleted.png';
// When a thumbnailed image is going to be the same (in dimension), just copy the entire file and use
// that as a thumbnail instead of resizing/redrawing.

View File

@ -88,6 +88,8 @@
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
}
}
} else {
$post['file'] = $config['root'] . $config['image_deleted'];
}
if (empty($post['image_count'])) $post['image_count'] = 0;