Permalink
Browse files

MDL-28453 backup - made temporary restoration courses hidden by default.

  • Loading branch information...
1 parent 6884b59 commit ed6a14eb0335a77068004456882a33d67bb4af6e @nebgor nebgor committed Jul 25, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 ed6a14e

Please sign in to comment.