mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Merge branch 'wip-MDL-35542-MOODLE_23_STABLE' of git://github.com/marinaglancy/moodle into MOODLE_23_STABLE
This commit is contained in:
commit
bb6b275906
1 changed files with 4 additions and 0 deletions
|
@ -506,6 +506,10 @@ class repository_dropbox extends repository {
|
|||
*/
|
||||
public function get_link($reference) {
|
||||
$ref = unserialize($reference);
|
||||
if (!isset($ref->url)) {
|
||||
$this->dropbox->set_access_token($ref->access_key, $ref->access_secret);
|
||||
$ref->url = $this->dropbox->get_file_share_link($ref->path, self::GETFILE_TIMEOUT);
|
||||
}
|
||||
return $this->get_file_download_link($ref->url);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue