mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 09:30:34 +01:00
[ticket/15689] Show unknown if can't retrieve free space
PHPBB3-15689
This commit is contained in:
parent
584d03a9fe
commit
0fed1054db
@ -21,7 +21,11 @@
|
||||
<td>{{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }}</td>
|
||||
<td>{{ storage.get_num_files }}</td>
|
||||
<td>{{ storage.get_size | format_bytes }}</td>
|
||||
<td>{{ storage.free_space | format_bytes }}</td>
|
||||
{% if storage.free_space !== false %}
|
||||
<td>{{ storage.free_space | format_bytes }}</td>
|
||||
{% else %}
|
||||
<td>{L_STORAGE_UNKNOWN}</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
@ -47,6 +47,7 @@ $lang = array_merge($lang, array(
|
||||
'STORAGE_NUM_FILES' => 'Number of files',
|
||||
'STORAGE_SIZE' => 'Size',
|
||||
'STORAGE_FREE' => 'Available space',
|
||||
'STORAGE_UNKNOWN' => 'Unknown',
|
||||
|
||||
// Storage names
|
||||
'STORAGE_ATTACHMENT_TITLE' => 'Attachments storage',
|
||||
|
Loading…
x
Reference in New Issue
Block a user