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
|
@ -81,7 +81,7 @@ $PAGE->set_url($url);
|
|||
$PAGE->set_pagelayout('standard');
|
||||
|
||||
if ($courseid != SITEID && !empty($courseid)) {
|
||||
$course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST);
|
||||
$course = get_course($courseid);
|
||||
$courses = array($course->id => $course);
|
||||
$issite = false;
|
||||
} else {
|
||||
|
|
|
@ -1811,7 +1811,7 @@ function calendar_get_allowed_types(&$allowed, $course = null) {
|
|||
|
||||
if (!empty($course)) {
|
||||
if (!is_object($course)) {
|
||||
$course = $DB->get_record('course', array('id' => $course), '*', MUST_EXIST);
|
||||
$course = get_course($course);
|
||||
}
|
||||
if ($course->id != SITEID) {
|
||||
$coursecontext = context_course::instance($course->id);
|
||||
|
|
|
@ -7,7 +7,7 @@ require_once($CFG->dirroot.'/calendar/lib.php');
|
|||
require_once($CFG->dirroot.'/calendar/preferences_form.php');
|
||||
|
||||
$courseid = required_param('course', PARAM_INT);
|
||||
$course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST);
|
||||
$course = get_course($courseid);
|
||||
|
||||
$PAGE->set_url(new moodle_url('/calendar/preferences.php', array('course' => $courseid)));
|
||||
$PAGE->set_pagelayout('standard');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue