Show missing file filenames

This commit is contained in:
Ben Goldsworthy 2023-02-20 23:08:00 +00:00
parent 51a7e57c91
commit 7a39bfd7d5
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
$embed .= '<p>Your browser doesn\'t support HTML video. Here is a <a href="' . url("/videos/" . $filepath[1]) . '">link to the video</a> instead.</p>';
$embed .= '</video>';
} else {
$embed = '<p>[This video has not yet been uploaded, try again later.]</p>';
$embed = '<p>[The video \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]</p>';
}
} elseif (preg_match("/\.ogg/", $filepath[1])) {
if (file_exists(public_path() . "/audio/" . $filepath[1])) {
@ -24,7 +24,7 @@
$embed .= '<p>Download <a href="' . url("/audio/" . $filepath[1]) . '">OGG</a> audio.</p>';
$embed .= '</audio>';
} else {
$embed = '<p>[This audio recording has not yet been uploaded, try again later.]</p>';
$embed = '<p>[The recording \'' . $filepath[1] . '\' has not yet been uploaded, try again later.]</p>';
}
}
$checkin->note = preg_replace("/\[\[[^\]]+\]\]/", $embed, $checkin->note);