MDL-29189 course Minor fixups after code review

This commit is contained in:
Sam Hemelryk
2011-09-13 11:17:18 +12:00
parent efd9c8e5b6
commit eb38d45b4e
7 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ class assignment_base {
print_error('invalidid', 'assignment');
}
$this->coursecontext = get_context_instance(CONTEXT_COURSE, $this->course->id);
$courseshortname = format_text($this->course->shortname, true, array('context' => $coursecontext));
$courseshortname = format_text($this->course->shortname, true, array('context' => $this->coursecontext));
if ($assignment) {
$this->assignment = $assignment;