diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-24 22:35:29 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-24 22:35:29 +0500 |
| commit | c734db91064944637e361f90ed90b30d48a7d910 (patch) | |
| tree | 641e8a7246039d98b13fa43b0d370460168a17e2 /public/catalogue.php | |
| parent | 2bdd40b6320d1504bb15f48242068534482c9b54 (diff) | |
feat: flash (.swf) support
Diffstat (limited to 'public/catalogue.php')
| -rw-r--r-- | public/catalogue.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/catalogue.php b/public/catalogue.php index 9836cbf..f2a5cd6 100644 --- a/public/catalogue.php +++ b/public/catalogue.php @@ -77,7 +77,7 @@ unset($f); <div class="brick<?= isset($file['color']) ? " {$file['color']}" : '' ?>"> <a href="/<?= sprintf('%s.%s', $file['id'], $file['extension']) ?>"> <i title="<?= $file['thumb_title'] ?>"> - <?php if (str_starts_with($file['mime'], 'image/') || str_starts_with($file['mime'], 'video/')): ?> + <?php if (str_starts_with($file['mime'], 'image/') || str_starts_with($file['mime'], 'video/') || $file['mime'] == 'application/x-shockwave-flash'): ?> <img src="<?= sprintf('%s/%s.webp', FILE_THUMBNAIL_DIRECTORY_PREFIX, $file['id']) ?>" alt="No thumbnail." loading="lazy"> <?php elseif (str_starts_with($file['mime'], 'audio/')): ?> |
