summaryrefslogtreecommitdiff
path: root/templates/themes/catalog
diff options
context:
space:
mode:
author8chan <admin@8chan.co>2014-12-31 22:37:19 -0800
committerczaks <marcin@6irc.net>2016-05-06 12:37:00 +0200
commit632d0a76d0afc5bd7a8cc90e6625a74fe432065a (patch)
tree12b74ec08bd57a7fb8df90b69d79d5debac225c1 /templates/themes/catalog
parentcb97029d0d95e54d7e78e46b26b366060fb7e547 (diff)
Display placeholder if no file in catalog/theme.php; czaks: fix the code a bit
Diffstat (limited to 'templates/themes/catalog')
-rw-r--r--templates/themes/catalog/theme.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php
index 34b28e48..c7a8ee95 100644
--- a/templates/themes/catalog/theme.php
+++ b/templates/themes/catalog/theme.php
@@ -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;