MDL-35339 call rebuild_course_cache() always (and only) after changing course modules or sections

This commit is contained in:
Marina Glancy
2012-10-15 14:08:14 +08:00
parent 384c3510a9
commit 38b19bbca1
8 changed files with 45 additions and 42 deletions
-1
View File
@@ -132,7 +132,6 @@ if ($editform->is_cancelled()) {
// Save any changes to the files used in the editor
update_course($data, $editoroptions);
}
rebuild_course_cache($course->id);
switch ($returnto) {
case 'category':