Skip to content

Commit

Permalink
#60 never register an openEquella drag and drop handler if it's not c…
Browse files Browse the repository at this point in the history
…onfigured
  • Loading branch information
mrblippy committed May 8, 2019
1 parent 78c63e1 commit 6dd6eef
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 6dd6eef

Please sign in to comment.