mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[php] fix #2014 "Parse error" on PHP < 5.3
This commit is contained in:
@@ -1084,7 +1084,7 @@ class elFinderVolumeBox extends elFinderVolumeDriver
|
||||
protected function getSharedWebContentLink($raw)
|
||||
{
|
||||
$fExtension = pathinfo($raw->name, PATHINFO_EXTENSION);
|
||||
$fType = explode('/', self::mimetypeInternalDetect($raw->name))[0];
|
||||
list($fType) = explode('/', self::mimetypeInternalDetect($raw->name));
|
||||
|
||||
if ($raw->shared_link->url && ($fType == 'image' || $fType == 'video' || $fType == 'audio')) {
|
||||
if ($fExtension == 'jpg' && $fType == 'image') {
|
||||
|
||||
Reference in New Issue
Block a user