X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/53819d60b11d4393b0871c93c4b4cdaa027346e4..045f02b53953998c9cb0cff34f7f62664bdd66cd:/lib/functions.php?ds=inline diff --git a/lib/functions.php b/lib/functions.php index 6f84649..3a304a4 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -453,7 +453,7 @@ jirafeau_is_viewable ($mime) if (!empty ($mime)) { /* Actually, verify if mime-type is an image or a text. */ - $viewable = array ('image', 'text'); + $viewable = array ('image', 'text', 'video', 'audio'); $decomposed = explode ('/', $mime); return in_array ($decomposed[0], $viewable); }