From fb37aef98c639e5cc9a6ac3e8c5279f1430032d2 Mon Sep 17 00:00:00 2001 From: mjansen Date: Fri, 9 Aug 2024 15:10:34 +0200 Subject: [PATCH] Mail: Cleanup old files from attachment stage (for anonymous user) --- Services/Mail/classes/class.ilMailAttachmentStageCleanup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Services/Mail/classes/class.ilMailAttachmentStageCleanup.php b/Services/Mail/classes/class.ilMailAttachmentStageCleanup.php index 80a11eb7645e..0762ef2ff299 100644 --- a/Services/Mail/classes/class.ilMailAttachmentStageCleanup.php +++ b/Services/Mail/classes/class.ilMailAttachmentStageCleanup.php @@ -60,10 +60,10 @@ function (SplFileInfo $file) use ($right_interval): bool { $relative_path = 'mail/' . $file->getFilename(); if ($filesystem->has($relative_path)) { $filesystem->delete($relative_path); - $this->logger->info('Deleting file from attachment stage: ' . $file->getPath()); + $this->logger->info('Deleting file from attachment stage: ' . $file->getPathname()); } } catch (Exception $e) { - $this->logger->error('Error deleting file from attachment stage: ' . $file->getPath()); + $this->logger->error('Error deleting file from attachment stage: ' . $file->getPathname()); } } }