mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
src build elFinder-2.1-9aaa0cf
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
Reference in New Issue
Block a user