Skip to content

Commit

Permalink
fixes path for image_deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
nonmakina committed Jan 11, 2021
1 parent 0611bb6 commit 87b0e97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/post/fileinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% for file in post.files %}
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
{% if file.file == 'deleted' %}
<img class="post-image deleted" src="{{ config.image_deleted }}" alt="" />
<img class="post-image deleted" src="{{ config.root }}{{ config.image_deleted }}" alt="" />
{% else %}
<p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}" target="_blank">{{ file.file }}</a> <span class="details">
(
Expand Down
6 changes: 3 additions & 3 deletions templates/themes/catalog/theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,12 +361,12 @@ private function generateRecentPosts($threads) {
}

if (empty($post['file']))
$post['file'] = $config['image_deleted'];
$post['file'] = $config['root'] . $config['image_deleted'];
} else {
$post['file'] = $config['image_deleted'];
$post['file'] = $config['root'] . $config['image_deleted'];
}
} else if($files[0]->thumb == 'spoiler') {
$post['file'] = '/' . $config['spoiler_image'];
$post['file'] = $config['root'] . $config['spoiler_image'];
} else {
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
}
Expand Down

0 comments on commit 87b0e97

Please sign in to comment.