From 0fed1054db5925f24570f6b34224a1bbe3a628d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Calvo?= Date: Sun, 1 Jul 2018 19:08:20 +0200 Subject: [PATCH] [ticket/15689] Show unknown if can't retrieve free space PHPBB3-15689 --- phpBB/adm/style/acp_storage.html | 6 +++++- phpBB/language/en/acp/storage.php | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/phpBB/adm/style/acp_storage.html b/phpBB/adm/style/acp_storage.html index 2d871a6e44..5107385834 100644 --- a/phpBB/adm/style/acp_storage.html +++ b/phpBB/adm/style/acp_storage.html @@ -21,7 +21,11 @@ {{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }} {{ storage.get_num_files }} {{ storage.get_size | format_bytes }} - {{ storage.free_space | format_bytes }} + {% if storage.free_space !== false %} + {{ storage.free_space | format_bytes }} + {% else %} + {L_STORAGE_UNKNOWN} + {% endif %} {% endfor %} diff --git a/phpBB/language/en/acp/storage.php b/phpBB/language/en/acp/storage.php index 1f43c6963a..5e171ac6f0 100644 --- a/phpBB/language/en/acp/storage.php +++ b/phpBB/language/en/acp/storage.php @@ -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',