mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-16 11:02:40 +01:00
Display placeholder if no file in catalog/theme.php
This commit is contained in:
parent
a095b2467a
commit
2be8988284
@ -21,6 +21,7 @@
|
||||
foreach ($boards as $board) {
|
||||
$b = new Catalog();
|
||||
$b->build($settings, $board);
|
||||
if (php_sapi_name() === "cli") echo "Rebuilding $board catalog...\n";
|
||||
}
|
||||
} elseif ($action == 'post-thread' || ($settings['update_on_posts'] && $action == 'post') || ($settings['update_on_posts'] && $action == 'post-delete') && (in_array($board, $boards) | $settings['all'])) {
|
||||
$b = new Catalog();
|
||||
@ -77,6 +78,8 @@
|
||||
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$post['file'] = $config['root'] . $config['no_file_image'];
|
||||
}
|
||||
|
||||
if (empty($post['image_count'])) $post['image_count'] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user