Permalink
Browse files

Merge branch 'MDL-28453_MOODLE_20_STABLE' into MOODLE_20_STABLE

  • Loading branch information...
2 parents 213eaa9 + 22edb99 commit e9adc8f6eba536e8dd0ffa0d618268220eaa68d4 @skodak skodak committed Jul 25, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 backup/util/dbops/restore_dbops.class.php
View
3 backup/util/dbops/restore_dbops.class.php
@@ -1340,7 +1340,8 @@ public static function create_new_course($fullname, $shortname, $categoryid) {
$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);

0 comments on commit e9adc8f

Please sign in to comment.