From: Vincent Vanwaelscappel Date: Tue, 4 Jan 2022 17:25:55 +0000 (+0100) Subject: wip #4688 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f77d8f9f3b50e53837ff205ce28ccc6fc2be038f;p=odl.git wip #4688 @0.25 --- diff --git a/resources/views/front/media-library.blade.php b/resources/views/front/media-library.blade.php index 25e1d09..8f9575e 100644 --- a/resources/views/front/media-library.blade.php +++ b/resources/views/front/media-library.blade.php @@ -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');