mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-32290 - Repositories - Fixing missing slash from the URL path
This commit is contained in:
parent
7128d8fca2
commit
e85b7e7865
1 changed files with 2 additions and 2 deletions
|
@ -144,7 +144,7 @@ class boxclient {
|
|||
'__login'=>1
|
||||
);
|
||||
try {
|
||||
$ret = $c->post($this->_box_api_auth_url.$ticket, $param);
|
||||
$ret = $c->post($this->_box_api_auth_url.'/'.$ticket, $param);
|
||||
} catch (moodle_exception $e) {
|
||||
$this->setError(0, 'connection time-out or invalid url');
|
||||
return false;
|
||||
|
@ -245,7 +245,7 @@ class boxclient {
|
|||
'size'=>display_size((int)$file->attributes()->size),
|
||||
'thumbnail'=>$thumbnail,
|
||||
'date'=>userdate((int)$file->attributes()->updated),
|
||||
'source'=> $this->_box_api_download_url
|
||||
'source'=> $this->_box_api_download_url .'/'
|
||||
.$this->auth_token.'/'.(string)$file->attributes()->id,
|
||||
'url'=>(string)$file->attributes()->shared_link);
|
||||
$tree[] = $tmp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue