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:
@@ -794,9 +794,6 @@ class elFinderVolumeBox extends elFinderVolumeDriver
|
||||
return array('exit' => true, 'error' => $this->error());
|
||||
}
|
||||
|
||||
if (!empty($_aToken->data->refresh_token)) {
|
||||
$this->session->remove('BoxTokens');
|
||||
}
|
||||
$this->session->remove('nodeId');
|
||||
unset($options['user'], $options['pass'], $options['id']);
|
||||
|
||||
@@ -924,6 +921,9 @@ class elFinderVolumeBox extends elFinderVolumeDriver
|
||||
list(, $itemId) = $this->_bd_splitPath($this->options['path']);
|
||||
$this->options['alias'] = ($this->options['path'] === '/') ? $this->options['root'] :
|
||||
$this->_bd_query($itemId, $fetch_self = true)->name . '@Box.com';
|
||||
if (!empty($this->options['netkey'])) {
|
||||
elFinder::$instance->updateNetVolumeOption($this->options['netkey'], 'alias', $this->options['alias']);
|
||||
}
|
||||
}
|
||||
|
||||
$this->rootName = isset($this->options['alias'])? $this->options['alias'] : 'Box.com';
|
||||
|
||||
Reference in New Issue
Block a user