MDL-39876 Change get_record('course') calls to get_course

This commit is contained in:
sam marshall
2013-08-15 11:31:20 +01:00
parent 838d78a9ff
commit ab7632b74c
189 changed files with 231 additions and 233 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ if (!$cm = get_coursemodule_from_instance('wiki', $wiki->id)) {
print_error('invalidcoursemodule');
}
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
$course = get_course($cm->course);
if ($compare >= $comparewith) {
print_error("A page version can only be compared with an older version.");