forked from GithubBackups/vichan
Just show deleted if first file deleted
This commit is contained in:
parent
bba8368254
commit
b015fc1323
@ -59,17 +59,7 @@
|
|||||||
|
|
||||||
if ($files[0]) {
|
if ($files[0]) {
|
||||||
if ($files[0]->file == 'deleted') {
|
if ($files[0]->file == 'deleted') {
|
||||||
if (count($files) > 1) {
|
$post['file'] = $config['image_deleted'];
|
||||||
foreach ($files as $file) {
|
|
||||||
if (($file == $files[0]) || ($file->file == 'deleted')) continue;
|
|
||||||
$post['file'] = $config['uri_thumb'] . $file->thumb;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($post['file'])) $post['file'] = $config['image_deleted'];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$post['file'] = $config['image_deleted'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if($files[0]->thumb == 'spoiler') {
|
else if($files[0]->thumb == 'spoiler') {
|
||||||
$post['file'] = '/' . $config['spoiler_image'];
|
$post['file'] = '/' . $config['spoiler_image'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user