mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-39876-master' of git://github.com/sammarshallou/moodle
Conflicts: course/lib.php
This commit is contained in:
commit
6eee89bc8f
191 changed files with 280 additions and 274 deletions
|
@ -65,7 +65,7 @@ if ($l) { // Two ways to specify the module
|
|||
$lti = $DB->get_record('lti', array('id' => $cm->instance), '*', MUST_EXIST);
|
||||
}
|
||||
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$course = get_course($cm->course);
|
||||
|
||||
require_login($course, false, $cm);
|
||||
$context = context_module::instance($cm->id);
|
||||
|
|
|
@ -51,7 +51,7 @@ require_once($CFG->dirroot.'/mod/lti/lib.php');
|
|||
|
||||
$id = required_param('id', PARAM_INT); // course id
|
||||
|
||||
$course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST);
|
||||
$course = get_course($id);
|
||||
|
||||
require_login($course);
|
||||
$PAGE->set_pagelayout('incourse');
|
||||
|
|
|
@ -55,7 +55,7 @@ $id = required_param('id', PARAM_INT); // Course Module ID
|
|||
|
||||
$cm = get_coursemodule_from_id('lti', $id, 0, false, MUST_EXIST);
|
||||
$lti = $DB->get_record('lti', array('id' => $cm->instance), '*', MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$course = get_course($cm->course);
|
||||
|
||||
require_login($course);
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ if ($l) { // Two ways to specify the module
|
|||
$lti = $DB->get_record('lti', array('id' => $cm->instance), '*', MUST_EXIST);
|
||||
}
|
||||
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$course = get_course($cm->course);
|
||||
|
||||
$tool = lti_get_tool_by_url_match($lti->toolurl);
|
||||
if ($tool) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue