course/index: remove call to rebuild_context_rel()
Very last caller to rebuild_context_rel() and any XX_context_rel() function. move_category() already takes care of calling context_moved(), which does the required context.path maintenance. Addresses MDL-11219
This commit is contained in:
@@ -195,8 +195,6 @@
|
||||
$newp = get_record('course_categories', 'id', $moveto);
|
||||
if (! move_category($tempcat, $newp)) {
|
||||
notify('Could not update that category!');
|
||||
} else {
|
||||
rebuild_context_rel(get_context_instance(CONTEXT_COURSECAT, $move));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user