Merge pull request #130 from nonmakina/pathFixes

Path fixes
This commit is contained in:
towards-a-new-leftypol 2021-01-11 10:15:49 +00:00 committed by GitHub
commit bde8b2980c
4 changed files with 6 additions and 8 deletions

View file

@ -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">
(

View file

@ -361,12 +361,12 @@
}
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;
}