[VD:Box,OneDrive] fix #2122 to be able to know the access token in debug mode

This commit is contained in:
nao-pon
2017-08-03 14:51:02 +09:00
parent 1cd6cf745e
commit 9c69a33eb4
2 changed files with 31 additions and 1 deletions
+15
View File
@@ -734,6 +734,21 @@ class elFinderVolumeBox extends elFinderVolumeDriver
return true;
}
/**
* Return debug info for client.
*
* @return array
**/
public function debug()
{
$res = parent::debug();
if (! empty($this->options['accessToken'])) {
$res['accessToken'] = $this->options['accessToken'];
}
return $res;
}
/*********************************************************************/
/* INIT AND CONFIGURE */
/*********************************************************************/