Skip to content

Commit

Permalink
[VD:Box,OneDrive] fix #2122 to be able to know the access token in de…
Browse files Browse the repository at this point in the history
…bug mode
  • Loading branch information
nao-pon committed Aug 3, 2017
1 parent 1cd6cf7 commit 9c69a33
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
15 changes: 15 additions & 0 deletions php/elFinderVolumeBox.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,21 @@ public function netunmount($netVolumes, $key)
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 */
/*********************************************************************/
Expand Down
17 changes: 16 additions & 1 deletion php/elFinderVolumeOneDrive.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,22 @@ public function netunmount($netVolumes, $key)

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 */
/*********************************************************************/
Expand Down

0 comments on commit 9c69a33

Please sign in to comment.