1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-23 09:00:48 +01:00

[ticket/15300] Show maximum attachment filesize

PHPBB3-15300
This commit is contained in:
Rubén Calvo 2018-08-30 20:45:24 +02:00 committed by rubencm
parent 73c355b92a
commit d16b240749
3 changed files with 7 additions and 4 deletions

View File

@ -726,10 +726,11 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a
// Some default template variables
$template->assign_vars(array(
'S_SHOW_ATTACH_BOX' => $show_attach_box,
'S_HAS_ATTACHMENTS' => count($attachment_data),
'FILESIZE' => $config['max_filesize'],
'FILE_COMMENT' => (isset($filename_data['filecomment'])) ? $filename_data['filecomment'] : '',
'S_SHOW_ATTACH_BOX' => $show_attach_box,
'S_HAS_ATTACHMENTS' => count($attachment_data),
'FILESIZE' => $config['max_filesize'],
'FILE_COMMENT' => (isset($filename_data['filecomment'])) ? $filename_data['filecomment'] : '',
'MAX_ATTACHMENT_FILESIZE' => $user->lang('MAX_ATTACHMENT_FILESIZE', get_formatted_filesize($config['max_filesize'])),
));
if (count($attachment_data))

View File

@ -151,6 +151,7 @@ $lang = array_merge($lang, array(
'LOGIN_EXPLAIN_QUOTE' => 'You need to login in order to quote posts within this forum.',
'LOGIN_EXPLAIN_REPLY' => 'You need to login in order to reply to topics within this forum.',
'MAX_ATTACHMENT_FILESIZE' => 'Maximum filesize per attachment: %s.',
'MAX_FONT_SIZE_EXCEEDED' => 'You may only use fonts up to size %d.',
'MAX_FLASH_HEIGHT_EXCEEDED' => array(
1 => 'Your flash files may only be up to %d pixel high.',

View File

@ -2,6 +2,7 @@
<div class="inner">
<p>{L_ADD_ATTACHMENT_EXPLAIN} <span class="hidden" id="drag-n-drop-message">{L_PLUPLOAD_DRAG_TEXTAREA}</span></p>
<p>{MAX_ATTACHMENT_FILESIZE}</p>
<fieldset class="fields2" id="attach-panel-basic">
<dl>