Index: trunk/phase3/includes/resourceloader/ResourceLoaderUserGroupsModule.php |
— | — | @@ -33,14 +33,14 @@ |
34 | 34 | protected function getPages( ResourceLoaderContext $context ) { |
35 | 35 | if ( $context->getUser() ) { |
36 | 36 | $user = User::newFromName( $context->getUser() ); |
37 | | - if( $user instanceof User ){ |
| 37 | + if ( $user instanceof User ) { |
38 | 38 | $pages = array(); |
39 | | - foreach( $user->getEffectiveGroups() as $group ){ |
40 | | - if( in_array( $group, array( '*', 'user' ) ) ){ |
| 39 | + foreach( $user->getEffectiveGroups() as $group ) { |
| 40 | + if ( in_array( $group, array( '*', 'user' ) ) ) { |
41 | 41 | continue; |
42 | 42 | } |
43 | | - $pages["MediaWiki:Group-$g.js"] = array( 'type' => 'script' ); |
44 | | - $pages["MediaWiki:Group-$g.css"] = array( 'type' => 'style' ); |
| 43 | + $pages["MediaWiki:Group-$group.js"] = array( 'type' => 'script' ); |
| 44 | + $pages["MediaWiki:Group-$group.css"] = array( 'type' => 'style' ); |
45 | 45 | } |
46 | 46 | return $pages; |
47 | 47 | } |