mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
Merge branch 'wip-mdl-39116' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
bc02f33809
@ -107,7 +107,7 @@ class dndupload_handler {
|
||||
* @param object $course The course this is being added to (to check course_allowed_module() )
|
||||
*/
|
||||
public function __construct($course, $modnames = null) {
|
||||
global $CFG;
|
||||
global $CFG, $PAGE;
|
||||
|
||||
// Add some default types to handle.
|
||||
// Note: 'Files' type is hard-coded into the Javascript as this needs to be ...
|
||||
@ -158,6 +158,7 @@ class dndupload_handler {
|
||||
$this->register_type_handler($type['identifier'], $modname, $type['message'], $noname);
|
||||
}
|
||||
}
|
||||
$PAGE->requires->string_for_js('pluginname', $modname);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user