From 2be8988284a860d3c3b7561bf4370e93c498bec6 Mon Sep 17 00:00:00 2001 From: 8chan Date: Wed, 31 Dec 2014 22:37:19 -0800 Subject: [PATCH] Display placeholder if no file in catalog/theme.php --- templates/themes/catalog/theme.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 5b940167..dc58fff2 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -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;