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
+4 -1
View File
@@ -980,9 +980,12 @@ class elFinderVolumeGoogleDrive extends elFinderVolumeDriver
if ($this->needOnline && empty($this->options['alias'])) {
$this->options['alias'] = ($this->options['path'] === '/') ? $this->options['root'] : sprintf($this->options['gdAlias'], $this->_gd_getNameByPath($this->options['path']));
if (!empty($this->options['netkey'])) {
elFinder::$instance->updateNetVolumeOption($this->options['netkey'], 'alias', $this->options['alias']);
}
}
$this->rootName = $this->options['alias'];
$this->rootName = isset($this->options['alias'])? $this->options['alias'] : 'GoogleDrive';
if (!empty($this->options['tmpPath'])) {
if ((is_dir($this->options['tmpPath']) || mkdir($this->options['tmpPath'])) && is_writable($this->options['tmpPath'])) {