diff --git a/lib.php b/lib.php index a211df0..f6b96f2 100644 --- a/lib.php +++ b/lib.php @@ -409,6 +409,13 @@ function equella_dndupload_register() { } } +//https://github.com/equella/moodle-mod_equella/issues/60 +if (isset($CFG->equella_intercept_files) && (int)$CFG->equella_intercept_files == EQUELLA_CONFIG_INTERCEPT_NONE) { + function equella_dndupload_register() { + return null; + } +} + /** * Handle a file that has been uploaded * diff --git a/version.php b/version.php index b2ef136..bf30ce0 100644 --- a/version.php +++ b/version.php @@ -15,6 +15,6 @@ // along with Moodle. If not, see . defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2018011200; +$plugin->version = 2019050800; $plugin->requires = 2014041101; // Requires this Moodle version $plugin->component = 'mod_equella'; // Full name of the plugin (used for diagnostics)