1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-13 04:13:29 +02:00

[ticket/16888] Add the list of allowed files in the attachment tab

Request mixed content using shorthand Ternary

PHPBB3-16888
This commit is contained in:
3D-I 2021-10-10 13:32:31 +02:00
parent 9ca70432d9
commit 52c931a8b6

View File

@ -821,7 +821,7 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a
global $cache, $request;
// $forum_id when FALSE check for PMs if INT then check for forum id (topics|posts)
$forum_id = $request->variable('f', 0) ? $request->variable('f', 0) : false;
$forum_id = $request->variable('f', 0) ?: false;
$allowed_attachments = array_keys($cache->obtain_attach_extensions($forum_id)['_allowed_']);
// Some default template variables