accesslib: delete_context() now appropriately marks the context dirty.

This commit is contained in:
martinlanghoff 2007-09-19 07:17:34 +00:00
parent 57770b87d0
commit e7c8160b6f

View File

@ -2248,6 +2248,7 @@ function create_system_context() {
function delete_context($contextlevel, $instanceid) {
if ($context = get_context_instance($contextlevel, $instanceid)) {
delete_records('context_rel', 'c2', $context->id); // might not be a parent
mark_context_dirty($context->path);
return delete_records('context', 'id', $context->id) &&
delete_records('role_assignments', 'contextid', $context->id) &&
delete_records('role_capabilities', 'contextid', $context->id) &&