Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php |
— | — | @@ -50,7 +50,7 @@ |
51 | 51 | $gadgetsByCategory = array(); |
52 | 52 | foreach ( $gadgets as $name ) { |
53 | 53 | $gadget = $repo->getGadget( $name ); |
54 | | - $gadgetsByCategory[$gadget->getCategory()] = $gadget; |
| 54 | + $gadgetsByCategory[$gadget->getCategory()][] = $gadget; |
55 | 55 | } |
56 | 56 | |
57 | 57 | foreach ( $gadgetsByCategory as $category => $gadgets ) { |