From: vyshane Date: Fri, 8 Sep 2006 02:33:02 +0000 (+0000) Subject: Seems that the unassign_capability function signature was changed without updating... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=46943f7b785c18174b5058e724602707f6ab719c;p=moodle.git Seems that the unassign_capability function signature was changed without updating the call to that function in capabilities_cleanup(). Fixed. --- diff --git a/lib/accesslib.php b/lib/accesslib.php index 21a7976e22..eac0d5adc2 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -1428,7 +1428,7 @@ function capabilities_cleanup($component, $newcapdef=NULL) { // Delete from roles. if($roles = get_roles_with_capability($cachedcap->name)) { foreach($roles as $role) { - if (!unassign_capability($role->id, $cachedcap->name)) { + if (!unassign_capability($cachedcap->name, $role->id)) { error('Could not unassign deprecated capability '. $cachedcap->name.' from role '.$role->name); }