X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/e4f9c92ff84f6146aaf1244147082efd57e289f6..00b364b18e137260dd0445ac903010eddafc3df0:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index b26d7b4..3a304a4 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -2,7 +2,7 @@ /* * Jirafeau, your web file repository * Copyright (C) 2008 Julien "axolotl" BERNARD - * Copyright (C) 2012 Jerome Jutteau + * Copyright (C) 2015 Jerome Jutteau * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -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); }