mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 11:13:59 +02:00
[ticket/17357] Remove file_info from storage
PHPBB-17357
This commit is contained in:
@@ -1260,19 +1260,7 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count_a
|
||||
{
|
||||
if ($config['img_display_inlined'])
|
||||
{
|
||||
if ($config['img_link_width'] || $config['img_link_height'])
|
||||
{
|
||||
try
|
||||
{
|
||||
$file_info = $storage_attachment->file_info($filename);
|
||||
|
||||
$display_cat = ($file_info->image_width <= $config['img_link_width'] && $file_info->image_height <= $config['img_link_height']) ? attachment_category::IMAGE : attachment_category::NONE;
|
||||
}
|
||||
catch (\Exception $e)
|
||||
{
|
||||
$display_cat = attachment_category::NONE;
|
||||
}
|
||||
}
|
||||
$display_cat = attachment_category::IMAGE;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user