Fixed compress activity log showing {{file}} instead of the archive filename (#5637)

Fix for #5630 

The compress_one string in resources/lang/en/activity.php referenced
:file as the placeholder, but the backend passes the filename under a
files array. This caused the activity log to render {file}} instead of
the actual filename

Changed :file to :files.0 to correctly resolve the first filename from
the array.

Solution was identified by the issue reporter (@marioenache).
This commit is contained in:
Aditya Dubey
2026-06-14 20:08:14 -04:00
committed by robert dennis
parent de034cf090
commit 4de5009014
+1 -1
View File
@@ -70,7 +70,7 @@ return [
'delete' => 'Deleted database :name',
],
'file' => [
'compress_one' => 'Compressed :directory:file',
'compress_one' => 'Compressed :directory:files.0',
'compress_other' => 'Compressed :count files in :directory',
'read' => 'Viewed the contents of :file',
'copy' => 'Created a copy of :file',