MDL-32290 - Repositories - Fixing missing slash from the URL path

This commit is contained in:
Jason Fowler
2012-06-20 10:42:22 +08:00
committed by Aparup Banerjee
parent 420b76d61e
commit 4018a4b4a7
+2 -2
View File
@@ -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;
@@ -222,7 +222,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;