src build elFinder-2.1-5491ce4

This commit is contained in:
nao-pon
2016-03-10 01:36:10 +09:00
parent 98b2e13f84
commit 0eecac7eb3
5 changed files with 8 additions and 10 deletions
+2 -4
View File
@@ -3372,10 +3372,8 @@ abstract class elFinderVolumeDriver {
// load default MIME table file "mime.types"
if (!elFinderVolumeDriver::$mimetypesLoaded) {
elFinderVolumeDriver::$mimetypesLoaded = true;
if (elFinder::$defaultMimefile) {
$file = elFinder::$defaultMimefile;
}
if (! is_readable($file)) {
$file = elFinder::$defaultMimefile;
if ($file === '' || ! is_readable($file)) {
$file = dirname(__FILE__).DIRECTORY_SEPARATOR.'mime.types';
}
if (is_readable($file)) {