From 101735cc8970550b404f6d9cbb2142c56ab3c414 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 31 Jul 2003 18:01:45 +0000 Subject: [PATCH] Included fix_category_courses() to adjust the new category structure --- backup/restore_execute.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backup/restore_execute.html b/backup/restore_execute.html index b7ac5770e5..727819aea6 100644 --- a/backup/restore_execute.html +++ b/backup/restore_execute.html @@ -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 "
  • ".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) -- 2.39.5