From 917271c349c8c84bd94b5182a591f8b492d9b6de Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 24 Nov 2022 11:02:54 -0700 Subject: [PATCH] Show list of directories that are over quota when you click "Recalculate" --- .../inc/class.filemanager_admin.inc.php | 7 +++++- filemanager/templates/default/quota.xet | 22 ++++++++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/filemanager/inc/class.filemanager_admin.inc.php b/filemanager/inc/class.filemanager_admin.inc.php index 49101d1975..5aed710220 100644 --- a/filemanager/inc/class.filemanager_admin.inc.php +++ b/filemanager/inc/class.filemanager_admin.inc.php @@ -388,6 +388,7 @@ class filemanager_admin extends filemanager_ui if(is_array($content)) { $button = key($content['button']); + unset($content['button']); switch($button) { case 'recalculate': @@ -417,7 +418,11 @@ class filemanager_admin extends filemanager_ui } } - $content = []; + $content = $content ?: []; + if($button == 'recalculate') + { + $content['check_oversize'] = true; + } $readonlys['quota'] = !($GLOBALS['egw_info']['apps']['stylite']); $tpl = new Etemplate('filemanager.quota'); $GLOBALS['egw_info']['flags']['app_header'] = lang('Quota'); diff --git a/filemanager/templates/default/quota.xet b/filemanager/templates/default/quota.xet index e6ab34854d..048efb829d 100644 --- a/filemanager/templates/default/quota.xet +++ b/filemanager/templates/default/quota.xet @@ -8,7 +8,27 @@