MDL-19125 lib: Fixed up inline comments during integration
authorSam Hemelryk <sam@moodle.com>
Sun, 18 Mar 2012 21:08:47 +0000 (10:08 +1300)
committerSam Hemelryk <sam@moodle.com>
Sun, 18 Mar 2012 21:08:47 +0000 (10:08 +1300)
backup/moodle2/restore_stepslib.php
lib/db/upgrade.php

index 94f558b..6dd757e 100644 (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);
index 226e24e..c6eaae7 100644 (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);