mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update displaying.php
This commit is contained in:
parent
a1a57d1eee
commit
43ff4f28b9
@ -311,12 +311,6 @@ function display_attachments($post_id)
|
|||||||
|
|
||||||
if ($thumbnail)
|
if ($thumbnail)
|
||||||
{
|
{
|
||||||
// Checks the thumbnail existence
|
|
||||||
if (!is_file($thumbnail_filename))
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Images, but display Thumbnail
|
// Images, but display Thumbnail
|
||||||
if ($attach_config['upload_dir'][0] == '/' || ( $attach_config['upload_dir'][0] != '/' && $attach_config['upload_dir'][1] == ':'))
|
if ($attach_config['upload_dir'][0] == '/' || ( $attach_config['upload_dir'][0] != '/' && $attach_config['upload_dir'][1] == ':'))
|
||||||
{
|
{
|
||||||
@ -324,6 +318,12 @@ function display_attachments($post_id)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Checks the thumbnail existence
|
||||||
|
if (!is_file($thumbnail_filename))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$thumb_source = $thumbnail_filename;
|
$thumb_source = $thumbnail_filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user