From: Andrew Garrett Date: Tue, 16 Jun 2009 09:40:50 +0000 (+0000) Subject: Fix bug in global auth caused by r48970 (I think). You need to call this->changeableG... X-Git-Tag: 1.31.0-rc.0~41349 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=1a0691531bc1bbabad7badc40aaae7bd83ece18e;p=lhc%2Fweb%2Fwiklou.git Fix bug in global auth caused by r48970 (I think). You need to call this->changeableGroups, not wgUser->changeableGroups --- diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 3b98da6716..c95f8bf234 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -154,6 +154,7 @@ class UserrightsPage extends SpecialPage { $removegroup[] = $group; } } + $this->doSaveUserGroups( $user, $addgroup, $removegroup, $reason ); } @@ -172,7 +173,7 @@ class UserrightsPage extends SpecialPage { // Validate input set... $isself = ($user->getName() == $wgUser->getName()); $groups = $user->getGroups(); - $changeable = $wgUser->changeableGroups(); + $changeable = $this->changeableGroups(); $addable = array_merge( $changeable['add'], $isself ? $changeable['add-self'] : array() ); $removable = array_merge( $changeable['remove'], $isself ? $changeable['remove-self'] : array() );