Merge pull request #1949 from owncloud/fix-dropbox
Fix undefined root parameter in Dropbox storage
This commit is contained in:
commit
f26c477433
1 changed files with 2 additions and 2 deletions
|
@ -40,8 +40,8 @@ class Dropbox extends \OC\Files\Storage\Common {
|
||||||
&& isset($params['token'])
|
&& isset($params['token'])
|
||||||
&& isset($params['token_secret'])
|
&& isset($params['token_secret'])
|
||||||
) {
|
) {
|
||||||
$this->id = 'dropbox::'.$params['app_key'] . $params['token']. '/' . $params['root'];
|
$this->root = isset($params['root']) ? $params['root'] : '';
|
||||||
$this->root=isset($params['root'])?$params['root']:'';
|
$this->id = 'dropbox::'.$params['app_key'] . $params['token']. '/' . $this->root;
|
||||||
$oauth = new \Dropbox_OAuth_Curl($params['app_key'], $params['app_secret']);
|
$oauth = new \Dropbox_OAuth_Curl($params['app_key'], $params['app_secret']);
|
||||||
$oauth->setToken($params['token'], $params['token_secret']);
|
$oauth->setToken($params['token'], $params['token_secret']);
|
||||||
$this->dropbox = new \Dropbox_API($oauth, 'dropbox');
|
$this->dropbox = new \Dropbox_API($oauth, 'dropbox');
|
||||||
|
|
Loading…
Reference in a new issue