diff options
author | Cesar G <prototech91@gmail.com> | 2014-04-09 11:35:19 -0700 |
---|---|---|
committer | Cesar G <prototech91@gmail.com> | 2014-04-09 11:38:14 -0700 |
commit | a8ec1905e18fda73c440373d696bf9d3b0e06b60 (patch) | |
tree | 952da454fcc67b46e0728b8e2dcae92d5381f5bf /phpBB/includes/ucp | |
parent | 0e3e715a48f99745eab30683b27e953dac07626c (diff) | |
download | forums-a8ec1905e18fda73c440373d696bf9d3b0e06b60.tar forums-a8ec1905e18fda73c440373d696bf9d3b0e06b60.tar.gz forums-a8ec1905e18fda73c440373d696bf9d3b0e06b60.tar.bz2 forums-a8ec1905e18fda73c440373d696bf9d3b0e06b60.tar.xz forums-a8ec1905e18fda73c440373d696bf9d3b0e06b60.zip |
[ticket/12356] Assign vars preventing Plupload from loading in PM editor.
PHPBB3-12356
Diffstat (limited to 'phpBB/includes/ucp')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index 87dfdf902b..3d95dc9a97 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -1081,6 +1081,7 @@ function compose_pm($id, $mode, $action, $user_folders = array()) 'S_SAVE_ALLOWED' => ($auth->acl_get('u_savedrafts') && $action != 'edit') ? true : false, 'S_HAS_DRAFTS' => ($auth->acl_get('u_savedrafts') && $drafts), 'S_FORM_ENCTYPE' => $form_enctype, + 'S_ATTACH_DATA' => json_encode($message_parser->attachment_data), 'S_BBCODE_IMG' => $img_status, 'S_BBCODE_FLASH' => $flash_status, @@ -1104,7 +1105,8 @@ function compose_pm($id, $mode, $action, $user_folders = array()) if ($allowed) { - $plupload->configure($cache, $template, $s_action, false); + $max_files = ($auth->acl_gets('a_', 'm_')) ? 0 : (int) $config['max_attachments_pm']; + $plupload->configure($cache, $template, $s_action, false, $max_files); } // Attachment entry |