]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15094 some more updates
authorskodak <skodak>
Thu, 5 Jun 2008 14:09:34 +0000 (14:09 +0000)
committerskodak <skodak>
Thu, 5 Jun 2008 14:09:34 +0000 (14:09 +0000)
course/rest.php

index 76abd0c03eea617951cc6bcd921bbdc40b394e44..6eb4164b10af8c298021d7c00e2c660168633caa 100644 (file)
@@ -103,13 +103,13 @@ switch($_SERVER['REQUEST_METHOD']) {
                     case 'indentleft':
                         if ($mod->indent > 0) {
                             $mod->indent--;
-                            update_record('course_modules', $mod);
+                            $DB->update_record('course_modules', $mod);
                         }
                         break;
 
                     case 'indentright':
                         $mod->indent++;
-                        update_record('course_modules', $mod);
+                        $DB->update_record('course_modules', $mod);
                         break;
 
                     case 'move':