Change embed file directory
This commit is contained in:
parent
df6b311cc4
commit
9a80b94e18
3 changed files with 6 additions and 4 deletions
|
@ -94,7 +94,7 @@
|
|||
@if(preg_match("/\[\[([^\]]+)\]\]/", $checkin->note, $filepath))
|
||||
@if(preg_match("/\.webm/", $filepath[1]))
|
||||
@php
|
||||
$popupContent = '<video controls><source src="/';
|
||||
$popupContent = '<video controls><source src="/videos/';
|
||||
$popupContent .= $filepath[1];
|
||||
$popupContent .= '" type="video/webm">';
|
||||
$popupContent .= '<p>Your browser doesn\'t support HTML video. Here is a <a href="/';
|
||||
|
@ -103,7 +103,7 @@
|
|||
@endphp
|
||||
@elseif(preg_match("/\.ogg/", $filepath[1]))
|
||||
@php
|
||||
$popupContent = '<audio controls><source src="/';
|
||||
$popupContent = '<audio controls><source src="/audio/';
|
||||
$popupContent .= $filepath[1];
|
||||
$popupContent .= '" type="audio/ogg">';
|
||||
$popupContent .= '<p>Download <a href="/';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue