5
1
Fork 0
mirror of https://github.com/Anvilcraft/jensmemes synced 2024-11-13 21:41:27 +01:00

some minor design fixes

This commit is contained in:
Jonas Leder 2020-06-28 17:44:27 +02:00
parent 208c61826c
commit 71d642d8f8

View file

@ -4,7 +4,7 @@ $random = rand(0, count($files) - 1);
$file = $files[$random];
$ext = strtolower(pathinfo($file, PATHINFO_EXTENSION));
if ($ext == "mp4") {
echo '<a href="' . $file . '"><video src=' . $file . ' controls ></video></a>';
echo "<a href='$file'><video src='$file' controls ></video></a>";
} else {
echo "<a href='$file'><img src='$file' /></a>";
}