Index: trunk/extensions/Translate/scripts/sync-group.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | // will give preference to groupIds. |
51 | 51 | $groupIds = isset( $options['group'] ) ? explode( ',', trim( $options['group'] ) ) : null; |
52 | 52 | $groupPrefix = isset( $options['groupprefix'] ) ? $options['groupprefix'] : null; |
53 | | -$groups = MessageGroups::getMessageGroups( $groupIds, $groupPrefix ); |
| 53 | +$groups = singleton()->getGroups( $groupIds, $groupPrefix ); |
54 | 54 | |
55 | 55 | if ( !count( $groups ) ) { |
56 | 56 | STDERR( "ESG2: No valid message groups identified." ); |
Index: trunk/extensions/Translate/scripts/export.php |
— | — | @@ -92,7 +92,7 @@ |
93 | 93 | // will give preference to groupIds. |
94 | 94 | $groupIds = isset( $options['group'] ) ? explode( ',', trim( $options['group'] ) ) : null; |
95 | 95 | $groupPrefix = isset( $options['groupprefix'] ) ? $options['groupprefix'] : null; |
96 | | -$groups = MessageGroups::getGroups( $groupIds, $groupPrefix ); |
| 96 | +$groups = singleton()->getGroups( $groupIds, $groupPrefix ); |
97 | 97 | |
98 | 98 | if ( !count( $groups ) ) { |
99 | 99 | STDERR( "No valid message groups identified." ); |
Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -1326,7 +1326,7 @@ |
1327 | 1327 | public function getGroups( $groups = null, $groupPrefix = null ) { |
1328 | 1328 | if ( count( $groups ) ) { |
1329 | 1329 | // Get groups and add groups to array |
1330 | | - foreach ( $groupIds as $groupId ) { |
| 1330 | + foreach ( $groups as $groupId ) { |
1331 | 1331 | $group = self::getGroup( $groupId ); |
1332 | 1332 | |
1333 | 1333 | if ( $group !== null ) { |