Remove constraint that $user must be a User object in SpecialUserrights, can also...
authorAndrew Garrett <werdna@users.mediawiki.org>
Wed, 25 Mar 2009 13:44:58 +0000 (13:44 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Wed, 25 Mar 2009 13:44:58 +0000 (13:44 +0000)
includes/specials/SpecialUserrights.php

index da98375..71a6b0b 100644 (file)
@@ -161,7 +161,7 @@ class UserrightsPage extends SpecialPage {
         * @param $reason String: reason for group change
         * @return Array: Tuple of added, then removed groups
         */
-       static function doSaveUserGroups( User $user, $add, $remove, $reason = '' ) {
+       static function doSaveUserGroups( $user, $add, $remove, $reason = '' ) {
                global $wgUser;
 
                // Validate input set...