From 7a39bfd7d577890d34b6516b7eb912b4672f9504 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Mon, 20 Feb 2023 23:08:00 +0000 Subject: [PATCH] Show missing file filenames --- resources/views/partials/checkins-list.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/partials/checkins-list.blade.php b/resources/views/partials/checkins-list.blade.php index d1cebed..69bb147 100644 --- a/resources/views/partials/checkins-list.blade.php +++ b/resources/views/partials/checkins-list.blade.php @@ -15,7 +15,7 @@ $embed .= '

Your browser doesn\'t support HTML video. Here is a link to the video instead.

'; $embed .= ''; } else { - $embed = '

[This video has not yet been uploaded, try again later.]

'; + $embed = '

[The video \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]

'; } } elseif (preg_match("/\.ogg/", $filepath[1])) { if (file_exists(public_path() . "/audio/" . $filepath[1])) { @@ -24,7 +24,7 @@ $embed .= '

Download OGG audio.

'; $embed .= ''; } else { - $embed = '

[This audio recording has not yet been uploaded, try again later.]

'; + $embed = '

[The recording \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]

'; } } $checkin->note = preg_replace("/\[\[[^\]]+\]\]/", $embed, $checkin->note);