X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/625f38a7decfc1ed72e0120c6ff34fcbe2d55100..00b364b18e137260dd0445ac903010eddafc3df0:/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); }