From f0424378f68ee222bc9914af6e391624d9f3c711 Mon Sep 17 00:00:00 2001 From: szaimen Date: Wed, 9 Feb 2022 09:47:44 +0100 Subject: Revert "Add non-breaking space in the file size" Signed-off-by: szaimen --- apps/files_sharing/lib/Controller/ShareController.php | 2 +- apps/files_sharing/templates/public.php | 4 ++-- apps/files_sharing/tests/Controller/ShareControllerTest.php | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'apps') diff --git a/apps/files_sharing/lib/Controller/ShareController.php b/apps/files_sharing/lib/Controller/ShareController.php index b4a332d7419..614dae7ffba 100644 --- a/apps/files_sharing/lib/Controller/ShareController.php +++ b/apps/files_sharing/lib/Controller/ShareController.php @@ -385,7 +385,7 @@ class ShareController extends AuthPublicShareController { $shareTmpl['protected'] = $share->getPassword() !== null ? 'true' : 'false'; $shareTmpl['dir'] = ''; $shareTmpl['nonHumanFileSize'] = $shareNode->getSize(); - $shareTmpl['fileSize'] = str_replace(' ', ' ', \OCP\Util::humanFileSize($shareNode->getSize())); + $shareTmpl['fileSize'] = \OCP\Util::humanFileSize($shareNode->getSize()); $shareTmpl['hideDownload'] = $share->getHideDownload(); $hideFileList = false; diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index 677f015ce81..33dd6ecd189 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -75,7 +75,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);