Skip to content

Commit

Permalink
Fixed a typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Dec 7, 2009
1 parent fcd3f5b commit 70e0f41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions group/lib.php
Expand Up @@ -280,7 +280,7 @@ function groups_delete_group($grouporid) {
$DB->delete_records('groups', array('id'=>$groupid));

// Delete all files associated with this group
$context = get_context_instace(CONTEXT_COURSE, $group->courseid);
$context = get_context_instance(CONTEXT_COURSE, $group->courseid);
$fs = get_file_storage();
$files = $fs->get_area_files($context->id, 'course_group_description', $groupid);
foreach ($files as $file) {
Expand Down Expand Up @@ -321,7 +321,7 @@ function groups_delete_grouping($groupingorid) {
//group itself last
$DB->delete_records('groupings', array('id'=>$groupingid));

$context = get_context_instace(CONTEXT_COURSE, $grouping->courseid);
$context = get_context_instance(CONTEXT_COURSE, $grouping->courseid);
$fs = get_file_storage();
$files = $fs->get_area_files($context->id, 'course_grouping_description', $groupingid);
foreach ($files as $file) {
Expand Down Expand Up @@ -387,7 +387,7 @@ function groups_delete_groupings_groups($courseid, $showfeedback=false) {
$DB->delete_records_select('groupings_groups', "groupid IN ($groupssql)", array($courseid));

// Delete all files associated with groupings for this course
$context = get_context_instace(CONTEXT_COURSE, $courseid);
$context = get_context_instance(CONTEXT_COURSE, $courseid);
$fs = get_file_storage();
$fs->delete_area_files($context->id, 'course_group_description');

Expand Down Expand Up @@ -461,7 +461,7 @@ function groups_delete_groupings($courseid, $showfeedback=false) {
$DB->delete_records('groupings', array('courseid'=>$courseid));

// Delete all files associated with groupings for this course
$context = get_context_instace(CONTEXT_COURSE, $courseid);
$context = get_context_instance(CONTEXT_COURSE, $courseid);
$fs = get_file_storage();
$fs->delete_area_files($context->id, 'course_grouping_description');

Expand Down

0 comments on commit 70e0f41

Please sign in to comment.