MDL-28453 backup - made temporary restoration courses hidden by default.
authorAparup Banerjee <aparup@moodle.com>
Mon, 25 Jul 2011 08:34:11 +0000 (16:34 +0800)
committerAparup Banerjee <aparup@moodle.com>
Mon, 25 Jul 2011 08:34:11 +0000 (16:34 +0800)
backup/util/dbops/restore_dbops.class.php

index 0b405c8..9f6f2f6 100644 (file)
@@ -1340,7 +1340,8 @@ abstract class restore_dbops {
         $course->sortorder = 0;
         $course->timecreated  = time();
         $course->timemodified = $course->timecreated;
-        $course->visible = $category->visible;
+        // forcing skeleton courses to be hidden instead of going by $category->visible , until MDL-27790 is resolved.
+        $course->visible = 0;
 
         $courseid = $DB->insert_record('course', $course);