Included fix_category_courses() to

adjust the new category structure
This commit is contained in:
stronk7
2003-07-31 18:01:45 +00:00
parent 3136f5fa70
commit 101735cc89
+7 -1
View File
@@ -204,10 +204,16 @@
$status = restore_check_instances($restore);
}
//Now if all is OK, update course modinfo field !!
//Now if all is OK, update:
// - course modinfo field
// - categories table
if ($status) {
echo "<li>".get_string("checkingcourse");
//modinfo field
rebuild_course_cache($restore->course_id);
//categories table
$course = get_record("course","id",$restore->course_id);
fix_category_courses($course->category);
}
//Cleanup temps (files and db)