From ec4e4acb81f6bc2f7cb4f2dfe4054618cda72903 Mon Sep 17 00:00:00 2001 From: "peter.janssens" Date: Thu, 12 Mar 2026 10:39:11 +0100 Subject: [PATCH] inform on remove-deleted-representations from purge-deleted --- app/lib/Utils/CLIUtils/Maintenance.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/Utils/CLIUtils/Maintenance.php b/app/lib/Utils/CLIUtils/Maintenance.php index 3c084ad797..4c6eb6c07f 100644 --- a/app/lib/Utils/CLIUtils/Maintenance.php +++ b/app/lib/Utils/CLIUtils/Maintenance.php @@ -326,7 +326,8 @@ public static function remove_deleted_representationsHelp() { public static function purge_deleted($opts=null) { require_once(__CA_LIB_DIR__."/Logging/Downloadlog.php"); - CLIUtils::addMessage(_t("Are you sure you want to PERMANENTLY remove all deleted records? This cannot be undone.\n\nType 'y' to proceed or 'N' to cancel, then hit return ", $current_revision, __CollectiveAccess_Schema_Rev__)); + CLIUtils::addMessage(_t("Are you sure you want to PERMANENTLY remove all deleted records? This cannot be undone.\n\nType 'y' to proceed or 'N' to cancel, then hit return \n\nConsider running remove-deleted-representations utility first, to physically remove the media files and avoid orphaned media on disk\n", $current_revision, __CollectiveAccess_Schema_Rev__)); + flush(); ob_flush(); $confirmation = trim( fgets( STDIN ) );