Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit ed6a14eb0335a77068004456882a33d67bb4af6e 1 parent 6884b59
@nebgor nebgor authored
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);
Please sign in to comment.
Something went wrong with that request. Please try again.