]> _ Git - odl.git/commitdiff
wip #4688 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Jan 2022 17:25:55 +0000 (18:25 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 4 Jan 2022 17:25:55 +0000 (18:25 +0100)
resources/views/front/media-library.blade.php

index 25e1d09fb7b810ca805636826e4746de370050fd..8f9575e74d18d6ad24a9560fe79e250868e203ef 100644 (file)
@@ -30,6 +30,9 @@
 
             $spf=new SplFileInfo($file);
             $ext=mb_strtolower($spf->getExtension());
+            if(in_array($ext,['pdf','jpg','jpeg','gif','png'])){
+                continue;
+            }
             $map=['mp3'=>'audio','mp4'=>'video'];
             $type=$map[$ext]??$a->get('type');