1
0
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:
Rubén Calvo 2018-07-01 19:08:20 +02:00
parent 584d03a9fe
commit 0fed1054db
2 changed files with 6 additions and 1 deletions

View File

@ -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>

View File

@ -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',