fixes path for image_deleted
This commit is contained in:
parent
0611bb6ad1
commit
87b0e972ee
|
@ -5,7 +5,7 @@
|
||||||
{% for file in post.files %}
|
{% for file in post.files %}
|
||||||
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
|
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
|
||||||
{% if file.file == 'deleted' %}
|
{% 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 %}
|
{% else %}
|
||||||
<p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}" target="_blank">{{ file.file }}</a> <span class="details">
|
<p class="fileinfo">File: <a href="{{ config.uri_img }}{{ file.file }}" target="_blank">{{ file.file }}</a> <span class="details">
|
||||||
(
|
(
|
||||||
|
|
|
@ -361,12 +361,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($post['file']))
|
if (empty($post['file']))
|
||||||
$post['file'] = $config['image_deleted'];
|
$post['file'] = $config['root'] . $config['image_deleted'];
|
||||||
} else {
|
} else {
|
||||||
$post['file'] = $config['image_deleted'];
|
$post['file'] = $config['root'] . $config['image_deleted'];
|
||||||
}
|
}
|
||||||
} else if($files[0]->thumb == 'spoiler') {
|
} else if($files[0]->thumb == 'spoiler') {
|
||||||
$post['file'] = '/' . $config['spoiler_image'];
|
$post['file'] = $config['root'] . $config['spoiler_image'];
|
||||||
} else {
|
} else {
|
||||||
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
|
$post['file'] = $config['uri_thumb'] . $files[0]->thumb;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue