src build elFinder-2.1-9aaa0cf

This commit is contained in:
nao-pon
2020-01-10 23:16:08 +09:00
parent bfa0a6ad26
commit 228a511fce
12 changed files with 60 additions and 20 deletions
+16
View File
@@ -2311,6 +2311,22 @@ abstract class elFinderVolumeDriver
return $file;
}
if (!empty($this->options['netkey']) && !empty($file['isroot'])) {
// change alias of netmount root
$rootKey = $this->getRootstatCachekey();
// delete old cache data
if ($this->sessionCaching['rootstat']) {
unset($this->sessionCaching['rootstat'][$rootKey]);
}
if (elFinder::$instance->updateNetVolumeOption($this->options['netkey'], 'alias', $name)) {
$this->clearcache();
$this->rootName = $this->options['alias'] = $name;
return $this->stat($this->root);
} else {
return $this->setError(elFinder::ERROR_TRGDIR_NOT_FOUND, $name);
}
}
if (!empty($file['locked'])) {
return $this->setError(elFinder::ERROR_LOCKED, $file['name']);
}