assignment MDL-24158 fixed call to get_plugin_list() which was causing a course reset...
[moodle.git] / mod / assignment / lib.php
index f7401ac..5b5cc61 100644 (file)
@@ -3565,8 +3565,7 @@ function assignment_reset_userdata($data) {
     global $CFG;
 
     $status = array();
-
-    foreach (get_plugin_list('mod/assignment/type') as $type=>$dir) {
+    foreach (get_plugin_list('assignment') as $type=>$dir) {
         require_once("$dir/assignment.class.php");
         $assignmentclass = "assignment_$type";
         $ass = new $assignmentclass();