MDL-65974 course: move format_base to core_course\course_format

This commit is contained in:
Ferran Recio
2021-03-11 17:36:34 +01:00
parent 96b49ddc97
commit 1c839f9072
16 changed files with 1440 additions and 35 deletions
+1 -3
View File
@@ -5179,9 +5179,7 @@ function delete_course($courseorid, $showfeedback = true) {
$DB->delete_records("course_format_options", array("courseid" => $courseid));
// Reset all course related caches here.
if (class_exists('format_base', false)) {
format_base::reset_course_cache($courseid);
}
core_course\course_format::reset_course_cache($courseid);
// Tell search that we have deleted the course so it can delete course data from the index.
\core_search\manager::course_deleting_finish($courseid);