Index: trunk/extensions/GlobalUserrights/GlobalUserrights.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | $wgExtensionCredits['specialpage'][] = array( |
18 | 18 | 'name' => 'GlobalUserrights', |
19 | 19 | 'url' => 'http://www.mediawiki.org/wiki/Extension:GlobalUserrights', |
20 | | - 'version' => '1.0.1', |
| 20 | + 'version' => '1.0.2', |
21 | 21 | 'author' => 'Nathaniel Herman', |
22 | 22 | 'description' => 'Easy [[Special:GlobalUserRights|global user rights]] administration', |
23 | 23 | 'descriptionmsg' => 'gur-desc', |
— | — | @@ -51,10 +51,6 @@ |
52 | 52 | * @return array of global groups |
53 | 53 | */ |
54 | 54 | function efGURgetGroups( $user ) { |
55 | | - global $egGUGroups; |
56 | | - if ( $egGUGroups ) |
57 | | - return $egGUGroups; |
58 | | - |
59 | 55 | if ( $user instanceof User ) { |
60 | 56 | $uid = $user->mId; |
61 | 57 | } else { |
— | — | @@ -63,7 +59,7 @@ |
64 | 60 | } |
65 | 61 | |
66 | 62 | $dbw = wfGetDB( DB_MASTER ); |
67 | | - $egGUGroups = array(); |
| 63 | + $groups = array(); |
68 | 64 | |
69 | 65 | $res = $dbw->select( 'global_user_groups', |
70 | 66 | array( 'gug_group' ), |
— | — | @@ -71,12 +67,12 @@ |
72 | 68 | ); |
73 | 69 | |
74 | 70 | while( $row = $dbw->fetchObject( $res ) ) { |
75 | | - $egGUGroups[] = $row->gug_group; |
| 71 | + $groups[] = $row->gug_group; |
76 | 72 | } |
77 | 73 | |
78 | 74 | $dbw->freeResult( $res ); |
79 | 75 | |
80 | | - return $egGUGroups; |
| 76 | + return $groups; |
81 | 77 | |
82 | 78 | } |
83 | 79 | |