[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>{{ 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>

View file

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