assignment MDL-24158 fixed call to get_plugin_list() which was causing a course reset...
authorAparup Banerjee <nebgor@gmail.com>
Mon, 20 Sep 2010 01:42:28 +0000 (01:42 +0000)
committerAparup Banerjee <nebgor@gmail.com>
Mon, 20 Sep 2010 01:42:28 +0000 (01:42 +0000)
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();