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:
parent
9ca70432d9
commit
52c931a8b6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user