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

This reverts commit ab7632b74c.
This commit is contained in:
Damyon Wiese
2013-08-21 13:42:30 +08:00
parent a101c7f011
commit 74df2951d1
189 changed files with 233 additions and 231 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ $cmid = required_param('cmid', PARAM_INT); // course mo
$method = optional_param('method', 'manual', PARAM_ALPHA); // method to use
$cm = get_coursemodule_from_id('workshop', $cmid, 0, false, MUST_EXIST);
$course = get_course($cm->course);
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
$workshop = $DB->get_record('workshop', array('id' => $cm->instance), '*', MUST_EXIST);
$workshop = new workshop($workshop, $cm, $course);