mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-32990 - Repositories - Updating Box.net API calls to use HTTPS
This commit is contained in:
parent
f4a9bf65da
commit
9e9382530f
2 changed files with 14 additions and 10 deletions
|
@ -136,7 +136,7 @@ class repository_boxnet extends repository {
|
|||
$list[] = array('title'=>$v,
|
||||
'size'=>$filesizes[$n],
|
||||
'date'=>$filedates[$n],
|
||||
'source'=>'http://box.net/api/1.0/download/'
|
||||
'source'=>'https://www.box.com/api/1.0/download/'
|
||||
.$this->auth_token.'/'.$fileids[$n],
|
||||
'thumbnail' => $OUTPUT->pix_url(file_extension_icon($v, 90))->out(false));
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ class repository_boxnet extends repository {
|
|||
$ret = array();
|
||||
$ret['list'] = array();
|
||||
$tree = $this->boxclient->getfiletree($path);
|
||||
$ret['manage'] = 'http://www.box.net/files';
|
||||
$ret['manage'] = 'http://www.box.com/files';
|
||||
$ret['path'] = array(array('name'=>'Root', 'path'=>0));
|
||||
if(!empty($tree)) {
|
||||
$ret['list'] = array_filter($tree, array($this, 'filter'));
|
||||
|
@ -176,7 +176,7 @@ class repository_boxnet extends repository {
|
|||
if ($this->options['ajax']) {
|
||||
$popup_btn = new stdClass();
|
||||
$popup_btn->type = 'popup';
|
||||
$popup_btn->url = ' https://www.box.net/api/1.0/auth/' . $t['ticket'];
|
||||
$popup_btn->url = ' https://www.box.com/api/1.0/auth/' . $t['ticket'];
|
||||
|
||||
$ret = array();
|
||||
$ret['login'] = array($popup_btn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue