1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

MediaPicker preview fix.

This commit is contained in:
Cameron
2018-08-26 15:36:05 -07:00
parent e392fd5740
commit adce28a1f5

View File

@@ -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)
{