mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-10 17:45:18 +02:00
Merge pull request #5858 from mrgoldy/ticket/16335
[ticket/16335] Ensure attachment event variables are always defined
This commit is contained in:
commit
11f2c076f6
@ -1166,6 +1166,8 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count_a
|
||||
$filename = $phpbb_root_path . $config['upload_path'] . '/' . utf8_basename($attachment['physical_filename']);
|
||||
|
||||
$upload_icon = '';
|
||||
$download_link = '';
|
||||
$display_cat = false;
|
||||
|
||||
if (isset($extensions[$attachment['extension']]))
|
||||
{
|
||||
@ -1345,7 +1347,7 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count_a
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.parse_attachments_modify_template_data', compact($vars)));
|
||||
$update_count_ary = $update_count;
|
||||
unset($update_count);
|
||||
unset($update_count, $display_cat, $download_link);
|
||||
|
||||
$template->assign_block_vars('_file', $block_array);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user