Skip to content
Permalink
Browse files

MDL-39116 Course: Pluginname strings will be set in M.str for all mod…

…ules supporting Dnd

Currently, if new activity/resource is created by DnD and M.str doesn't have pluginname string
it show wrong string, so loading pluginnames for all modules which support DnD
  • Loading branch information...
Rajesh Taneja
Rajesh Taneja committed Apr 15, 2013
1 parent b3661ab commit 0434840004e2e7c83e724591844fc6be6072f01e
Showing with 2 additions and 1 deletion.
  1. +2 −1 course/dnduploadlib.php
@@ -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 @@ public function __construct($course, $modnames = null) {
$this->register_type_handler($type['identifier'], $modname, $type['message'], $noname);
}
}
$PAGE->requires->string_for_js('pluginname', $modname);
}
}

0 comments on commit 0434840

Please sign in to comment.
You can’t perform that action at this time.