mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/15300] Only display max filesize if it's not zero
PHPBB3-15300
This commit is contained in:
parent
d16b240749
commit
7870c48ced
2 changed files with 2 additions and 2 deletions
|
@ -730,7 +730,7 @@ function posting_gen_attachment_entry($attachment_data, &$filename_data, $show_a
|
||||||
'S_HAS_ATTACHMENTS' => count($attachment_data),
|
'S_HAS_ATTACHMENTS' => count($attachment_data),
|
||||||
'FILESIZE' => $config['max_filesize'],
|
'FILESIZE' => $config['max_filesize'],
|
||||||
'FILE_COMMENT' => (isset($filename_data['filecomment'])) ? $filename_data['filecomment'] : '',
|
'FILE_COMMENT' => (isset($filename_data['filecomment'])) ? $filename_data['filecomment'] : '',
|
||||||
'MAX_ATTACHMENT_FILESIZE' => $user->lang('MAX_ATTACHMENT_FILESIZE', get_formatted_filesize($config['max_filesize'])),
|
'MAX_ATTACHMENT_FILESIZE' => $config['max_filesize'] > 0 ? $user->lang('MAX_ATTACHMENT_FILESIZE', get_formatted_filesize($config['max_filesize'])) : '',
|
||||||
));
|
));
|
||||||
|
|
||||||
if (count($attachment_data))
|
if (count($attachment_data))
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="inner">
|
<div class="inner">
|
||||||
|
|
||||||
<p>{L_ADD_ATTACHMENT_EXPLAIN} <span class="hidden" id="drag-n-drop-message">{L_PLUPLOAD_DRAG_TEXTAREA}</span></p>
|
<p>{L_ADD_ATTACHMENT_EXPLAIN} <span class="hidden" id="drag-n-drop-message">{L_PLUPLOAD_DRAG_TEXTAREA}</span></p>
|
||||||
<p>{MAX_ATTACHMENT_FILESIZE}</p>
|
{% if MAX_ATTACHMENT_FILESIZE is not empty %}<p>{{ MAX_ATTACHMENT_FILESIZE }}</p>{% endif %}
|
||||||
|
|
||||||
<fieldset class="fields2" id="attach-panel-basic">
|
<fieldset class="fields2" id="attach-panel-basic">
|
||||||
<dl>
|
<dl>
|
||||||
|
|
Loading…
Add table
Reference in a new issue