mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15689] Show unknown if can't retrieve free space
PHPBB3-15689
This commit is contained in:
parent
584d03a9fe
commit
0fed1054db
2 changed files with 6 additions and 1 deletions
|
@ -21,7 +21,11 @@
|
||||||
<td>{{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }}</td>
|
<td>{{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }}</td>
|
||||||
<td>{{ storage.get_num_files }}</td>
|
<td>{{ storage.get_num_files }}</td>
|
||||||
<td>{{ storage.get_size | format_bytes }}</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>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -47,6 +47,7 @@ $lang = array_merge($lang, array(
|
||||||
'STORAGE_NUM_FILES' => 'Number of files',
|
'STORAGE_NUM_FILES' => 'Number of files',
|
||||||
'STORAGE_SIZE' => 'Size',
|
'STORAGE_SIZE' => 'Size',
|
||||||
'STORAGE_FREE' => 'Available space',
|
'STORAGE_FREE' => 'Available space',
|
||||||
|
'STORAGE_UNKNOWN' => 'Unknown',
|
||||||
|
|
||||||
// Storage names
|
// Storage names
|
||||||
'STORAGE_ATTACHMENT_TITLE' => 'Attachments storage',
|
'STORAGE_ATTACHMENT_TITLE' => 'Attachments storage',
|
||||||
|
|
Loading…
Add table
Reference in a new issue