diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2008-10-06 13:53:18 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-10-06 13:53:18 +0000 |
| commit | b4d2641a595dcd25b52118793031e78f0e3b7da7 (patch) | |
| tree | dda3d40bb9b27070b4aed874f521a6e1bd9daba6 /phpBB/posting.php | |
| parent | 80b9fd04e06a8d48f84e493ca53fb73b4f4fa83d (diff) | |
| download | forums-b4d2641a595dcd25b52118793031e78f0e3b7da7.tar forums-b4d2641a595dcd25b52118793031e78f0e3b7da7.tar.gz forums-b4d2641a595dcd25b52118793031e78f0e3b7da7.tar.bz2 forums-b4d2641a595dcd25b52118793031e78f0e3b7da7.tar.xz forums-b4d2641a595dcd25b52118793031e78f0e3b7da7.zip | |
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
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 4cfd1d7d72..a3dcc27d44 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -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); |
