diff --git a/inc/config.php b/inc/config.php index 21957077..241e27da 100644 --- a/inc/config.php +++ b/inc/config.php @@ -794,9 +794,9 @@ // Location of above images. $config['file_thumb'] = 'static/%s'; // Location of thumbnail to use for spoiler images. - $config['spoiler_image'] = '/static/spoiler.png'; + $config['spoiler_image'] = 'static/spoiler.png'; // Location of thumbnail to use for deleted images. - $config['image_deleted'] = '/static/deleted.png'; + $config['image_deleted'] = 'static/deleted.png'; // When a thumbnailed image is going to be the same (in dimension), just copy the entire file and use // that as a thumbnail instead of resizing/redrawing. diff --git a/inc/instance-config.php b/inc/instance-config.php index 6c2704d7..98f6a327 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -266,8 +266,6 @@ $config['stylesheets']['Dark'] = 'dark.css'; $config['stylesheets']['Dark Red'] = 'dark_red.css'; $config['always_noko'] = true; $config['spoiler_images'] = true; -$config['spoiler_image'] = 'static/spoiler.png'; -$config['image_deleted'] = 'static/deleted.png'; //more themes (issue#26) $config['stylesheets']['Burichan'] = 'burichan.css'; diff --git a/templates/post/fileinfo.html b/templates/post/fileinfo.html index b3473114..a551e8bb 100644 --- a/templates/post/fileinfo.html +++ b/templates/post/fileinfo.html @@ -5,7 +5,7 @@ {% for file in post.files %}
{% if file.file == 'deleted' %} - + {% else %}

File: {{ file.file }} ( diff --git a/templates/themes/catalog/theme.php b/templates/themes/catalog/theme.php index 63ced223..75ba3a72 100644 --- a/templates/themes/catalog/theme.php +++ b/templates/themes/catalog/theme.php @@ -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; }