}
}
+ // added a role sitewide...
+ mark_context_dirty($sitecontext->path);
+
if (empty($errors)) {
redirect('manage.php');
}
}
}
+ // edited a role sitewide...
+ mark_context_dirty($sitecontext->path);
+
redirect('manage.php');
}
+
+ // edited a role sitewide - with errors, but still...
+ mark_context_dirty($sitecontext->path);
}
break;
}
if ($confirm and data_submitted() and confirm_sesskey()) {
if (!delete_role($roleid)) {
+
+ // partially deleted a role sitewide...?
+ mark_context_dirty($sitecontext->path);
+
error('Could not delete role with ID '.$roleid);
}
+ // deleted a role sitewide...
+ mark_context_dirty($sitecontext->path);
} else if (confirm_sesskey()){
// show confirmation
if ($newrole = create_role($currentfullname, $currentshortname, $description)) {
// dupilcate all the capabilities
role_cap_duplicate($sourcerole, $newrole);
+
+ // dup'ed a role sitewide...
+ mark_context_dirty($sitecontext->path);
+
}
redirect('manage.php');
break;
if ($confirm and data_submitted() and confirm_sesskey()) {
reset_role_capabilities($roleid);
+
+ // reset a role sitewide...
+ mark_context_dirty($sitecontext->path);
+
redirect('manage.php?action=view&roleid='.$roleid);
} else {