aboutsummaryrefslogtreecommitdiff
path: root/app/class/Medialist.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/Medialist.php')
-rw-r--r--app/class/Medialist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/class/Medialist.php b/app/class/Medialist.php
index ca42f4b..3395b58 100644
--- a/app/class/Medialist.php
+++ b/app/class/Medialist.php
@@ -74,7 +74,7 @@ class Medialist extends Item
$div .= '<audio id="' . $media->id() . '" controls src="' . $media->getincludepath() . '" </audio>';
} elseif ($media->type() == 'video') {
$div .= '<video controls><source src="' . $media->getincludepath() . '" type="video/' . $media->extension() . '"></video>';
- } elseif ($media->type() == 'other') {
+ } else {
$div .= '<a href="' . $media->getincludepath() . '" target="_blank" class="media" >' . $media->id() . '.' . $media->extension() . '</a>';
}
$div .= '</div>' . PHP_EOL;