MDL-19125 lib: Fixed up inline comments during integration

This commit is contained in:
Sam Hemelryk 2012-03-19 10:08:47 +13:00
parent 264743baaf
commit 8149d6240a
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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);