mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +02:00
Separate display of posted attachments in posting screen and switch for template to indicate adding attachments are allowed. Related to Bug #13871
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8976 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1354,12 +1354,11 @@ if (($mode == 'post' || ($mode == 'edit' && $post_id == $post_data['topic_first_
|
||||
);
|
||||
}
|
||||
|
||||
// Show attachment box for adding attachments if true
|
||||
$allowed = ($auth->acl_get('f_attach', $forum_id) && $auth->acl_get('u_attach') && $config['allow_attachments'] && $form_enctype);
|
||||
|
||||
// Attachment entry
|
||||
// Not using acl_gets here, because it is using OR logic
|
||||
if ($auth->acl_get('f_attach', $forum_id) && $auth->acl_get('u_attach') && $config['allow_attachments'] && $form_enctype)
|
||||
{
|
||||
posting_gen_attachment_entry($attachment_data, $filename_data);
|
||||
}
|
||||
posting_gen_attachment_entry($attachment_data, $filename_data, $allowed);
|
||||
|
||||
// Output page ...
|
||||
page_header($page_title);
|
||||
|
Reference in New Issue
Block a user