src build elFinder-2.1-bd15aee

This commit is contained in:
nao-pon
2016-06-29 11:37:35 +09:00
parent d5ce45baca
commit 01d2414670
5 changed files with 196 additions and 109 deletions
+6 -1
View File
@@ -285,6 +285,11 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
$changeSep = (DIRECTORY_SEPARATOR !== '/');
if ($changeSep) {
$drive = '';
if (preg_match('/^([a-zA-Z]:)(.*)/', $path, $m)) {
$drive = $m[1];
$path = $m[2]? $m[2] : '/';
}
$path = str_replace(DIRECTORY_SEPARATOR, '/', $path);
}
@@ -324,7 +329,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
}
if ($changeSep) {
$path = str_replace('/', DIRECTORY_SEPARATOR, $path);
$path = $drive . str_replace('/', DIRECTORY_SEPARATOR, $path);
}
return $path ? $path : '.';