X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/625f38a7decfc1ed72e0120c6ff34fcbe2d55100..d60db9780188b973b727366f4867b8f17425c3bd:/lib/functions.php 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); }