fix audio
This commit is contained in:
parent
70f398edaf
commit
d5d0b426f1
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
||||||
}
|
}
|
||||||
} elseif (preg_match("/\.ogg/", $filepath[1])) {
|
} elseif (preg_match("/\.ogg/", $filepath[1])) {
|
||||||
$hasEmbed = 'audio';
|
$hasEmbed = 'audio';
|
||||||
|
$trip_slug = preg_replace( '/[^A-Za-z0-9-]+/', '-', strtolower( $trip->name ) );
|
||||||
if (file_exists(public_path() . "/" . $trip_slug . "/" . $hasEmbed . "/" . $filepath[1])) {
|
if (file_exists(public_path() . "/" . $trip_slug . "/" . $hasEmbed . "/" . $filepath[1])) {
|
||||||
$path = "/" . $trip_slug . "/" .$hasEmbed . "/" . $filepath[1];
|
$path = "/" . $trip_slug . "/" .$hasEmbed . "/" . $filepath[1];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue