MDL-21015 - typo detected when working on grade tests...

This commit is contained in:
Eloy Lafuente 2009-12-01 14:47:14 +00:00
parent 04aa2fd6c6
commit 7401a7cd25

View File

@ -96,7 +96,7 @@ class grade_outcome extends grade_object {
$DB->delete_records('grade_outcomes_courses', array('outcomeid' => $this->id, 'courseid' => $this->courseid));
}
if (parent::delete($source)) {
$context = get_context_instace(CONTEXT_SYSTEM);
$context = get_context_instance(CONTEXT_SYSTEM);
$fs = get_file_storage();
$files = $fs->get_area_files($context->id, 'grade_outcome', $this->id);
foreach ($files as $file) {