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
26874345b8
commit
8430db0b3e
@ -197,10 +197,10 @@ function display_attachments($post_id)
|
|||||||
$thumbnail_filename = $upload_dir . '/' . THUMB_DIR . '/t_' . basename($attachments['_' . $post_id][$i]['physical_filename']);
|
$thumbnail_filename = $upload_dir . '/' . THUMB_DIR . '/t_' . basename($attachments['_' . $post_id][$i]['physical_filename']);
|
||||||
|
|
||||||
// Check the file existence
|
// Check the file existence
|
||||||
if (!is_file($filename))
|
/*if (!is_file($filename))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
$upload_image = '';
|
$upload_image = '';
|
||||||
|
|
||||||
@ -319,10 +319,10 @@ function display_attachments($post_id)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Checks the thumbnail existence
|
// Checks the thumbnail existence
|
||||||
if (!is_file($thumbnail_filename))
|
/*if (!is_file($thumbnail_filename))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
$thumb_source = $thumbnail_filename;
|
$thumb_source = $thumbnail_filename;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user