From adce28a1f515510785f164eae2fbab3eb582428a Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 26 Aug 2018 15:36:05 -0700 Subject: [PATCH] MediaPicker preview fix. --- e107_handlers/media_class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/e107_handlers/media_class.php b/e107_handlers/media_class.php index ca94ef7f3..4ae4ab4ca 100644 --- a/e107_handlers/media_class.php +++ b/e107_handlers/media_class.php @@ -1114,8 +1114,7 @@ class e_media */ public function detectType($mediaURL) { - list($id,$type) = explode(".",$mediaURL,2); - unset($id); + $type = pathinfo($mediaURL,PATHINFO_EXTENSION); foreach($this->mimeExtensions as $key=>$exts) {