MDL-12884 web installer should set the depth of the miscellaneous course category to 1 too (discussion in moodle hq skype chat with Petr)

This commit is contained in:
mjollnir_
2008-01-08 23:26:26 +00:00
parent 9b672f584f
commit 07e27f4746
+2 -1
View File
@@ -473,6 +473,7 @@
$cat = new object();
$cat->name = get_string('miscellaneous');
$cat->depth = 1;
if (!$catid = insert_record('course_categories', $cat)) {
error("Serious Error! Could not set up a default course category!");
}
@@ -627,4 +628,4 @@
admin_externalpage_print_footer();
?>
?>