src build elFinder-2.1-3627ee4

This commit is contained in:
nao-pon
2017-12-06 23:40:42 +09:00
parent a1d62b0d4d
commit 3067be0d2a
7 changed files with 23 additions and 13 deletions
@@ -80,6 +80,10 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
$this->options[$key] = str_replace('/', DIRECTORY_SEPARATOR, $this->options[$key]);
}
}
// PHP >= 7.1 Supports UTF-8 path on Windows
if (version_compare(PHP_VERSION, '7.1', '>=')) {
$this->options['encoding'] = '';
}
}
if (!$cwd = getcwd()) {
return $this->setError('elFinder LocalVolumeDriver requires a result of getcwd().');