mirror of
https://github.com/moodle/moodle.git
synced 2025-03-07 01:10:02 +01:00
- When Dropbox file is inserted by reference, the shared link is created and stored - Added a function to fix old references (containing access_key/secret) with the proper ones - Added support for external links in Dropbox (FILE_EXTERNAL), using the shared link API - Make sure that repository::get_link() receives reference and not source (other repositories than Dropbox have those fields identical) - Function get_file_by_reference respects request timeouts, downloads only images (for thumbnail generation), - Function get_file respects request timeout - do not use cache_file class (content is cached in moodle filepool if needed) - added parameter for maximum size of files to cache - added 'Manage' link for Filepicker - added user name to - added user name (if different from current) to 'Original' field - added/corrected phpdocs
31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
<?php
|
|
// This file is part of Moodle - http://moodle.org/
|
|
//
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
/**
|
|
* Version details
|
|
*
|
|
* @package repository_dropbox
|
|
* @copyright 2010 Dongsheng Cai
|
|
* @author Dongsheng Cai <dongsheng@moodle.com>
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
defined('MOODLE_INTERNAL') || die();
|
|
|
|
$plugin->version = 2012080702; // The current plugin version (Date: YYYYMMDDXX)
|
|
$plugin->requires = 2012061700; // Requires this Moodle version
|
|
$plugin->component = 'repository_dropbox'; // Full name of the plugin (used for diagnostics)
|