mirror of
https://github.com/moodle/moodle.git
synced 2025-02-08 09:02:07 +01:00
MDL-28453 backup - made temporary restoration courses hidden by default.
This commit is contained in:
parent
6884b598f3
commit
ed6a14eb03
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user