mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 20:50:21 +01:00
MDL-19125 lib: Fixed up inline comments during integration
This commit is contained in:
parent
264743baaf
commit
8149d6240a
@ -1146,7 +1146,8 @@ class restore_course_structure_step extends restore_structure_step {
|
||||
$data->hiddensections = 0;
|
||||
}
|
||||
|
||||
// Only restrict modules if original course was and target site too for new courses
|
||||
// Set legacyrestrictmodules to true if the course was resticting modules. If so
|
||||
// then we will need to process restricted modules after execution.
|
||||
$this->legacyrestrictmodules = !empty($data->restrictmodules);
|
||||
|
||||
$data->startdate= $this->apply_date_offset($data->startdate);
|
||||
|
@ -245,7 +245,7 @@ function xmldb_main_upgrade($oldversion) {
|
||||
array('course' => $courseid), 'module', 'module, 1');
|
||||
if (empty($allowedmoduleids)) {
|
||||
// This seems to be the best match for backwards compatibility,
|
||||
// Non necessrily with the old code in course_allowed_module function,
|
||||
// not necessarily with the old code in course_allowed_module function,
|
||||
// but with the code that used to be in the coures settings form.
|
||||
$allowedmoduleids = explode(',', $CFG->defaultallowedmodules);
|
||||
$allowedmoduleids = array_combine($allowedmoduleids, $allowedmoduleids);
|
||||
|
Loading…
x
Reference in New Issue
Block a user