Merge branch 'wip-mdl-39116' of git://github.com/rajeshtaneja/moodle

This commit is contained in:
Dan Poltawski 2013-04-16 13:42:01 +01:00
commit bc02f33809

View File

@ -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);
}
}