Index: trunk/extensions/Translate/api/ApiAggregateGroups.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | |
30 | 30 | $params = $this->extractRequestParams(); |
31 | 31 | $aggregateGroup = $params['aggregategroup']; |
32 | | - $action = $action; |
| 32 | + $action = $params['do']; |
33 | 33 | |
34 | 34 | if ( $action === 'associate' || $action === 'dissociate' ) { |
35 | 35 | // Group is mandatory only for these two actions |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | $subgroups[] = $group; |
57 | 57 | $subgroups = array_unique( $subgroups ); |
58 | 58 | } elseif ( $action === 'dissociate' ) { |
59 | | - $subgroups = array_flip( explode( ',', $subgroups ) ) ; |
| 59 | + $subgroups = array_flip( $subgroups ) ; |
60 | 60 | unset( $subgroups[$group] ); |
61 | 61 | $subgroups = array_flip( $subgroups ); |
62 | 62 | } |