Skip to content

Commit

Permalink
Merge pull request #61 from openequella/bugfix/60-drag-and-drop-fix
Browse files Browse the repository at this point in the history
#60 never register an openEquella drag and drop handler if it's not c…
  • Loading branch information
mrblippy authored Nov 4, 2019
2 parents 78c63e1 + 6dd6eef commit 699c2e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
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)

0 comments on commit 699c2e9

Please sign in to comment.