mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[volume:dropbox] fix cache GC problem on netunmount
This commit is contained in:
@@ -226,10 +226,14 @@ class elFinderVolumeDropbox extends elFinderVolumeDriver {
|
||||
* @param array $options
|
||||
* @return boolean
|
||||
*/
|
||||
public function netunmount($netVolumes) {
|
||||
public function netunmount($netVolumes, $key) {
|
||||
$count = 0;
|
||||
$dropboxUid = '';
|
||||
if (isset($netVolumes[$key])) {
|
||||
$dropboxUid = $netVolumes[$key]['dropboxUid'];
|
||||
}
|
||||
foreach($netVolumes as $volume) {
|
||||
if ($volume['host'] === 'dropbox') {
|
||||
if (@$volume['host'] === 'dropbox' && @$volume['dropboxUid'] === $dropboxUid) {
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
@@ -331,9 +335,6 @@ class elFinderVolumeDropbox extends elFinderVolumeDriver {
|
||||
}
|
||||
}
|
||||
|
||||
// auth ok
|
||||
$_SESSION['elFinderDropboxTokens'] = array($this->options['dropboxUid'], $this->options['accessToken'], $this->options['accessTokenSecret']);
|
||||
|
||||
$this->dropboxUid = $this->options['dropboxUid'];
|
||||
$this->tmbPrefix = 'dropbox'.base_convert($this->dropboxUid, 10, 32);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user