r96215 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96214‎ | r96215 | r96216 >
Date:02:26, 4 September 2011
Author:krinkle
Status:ok
Tags:
Comment:
[ResourceLoader2] Needs [] for it to be an array and count() to work.
* Follows-up r95981
Modified paths:
  • /branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php
@@ -50,7 +50,7 @@
5151 $gadgetsByCategory = array();
5252 foreach ( $gadgets as $name ) {
5353 $gadget = $repo->getGadget( $name );
54 - $gadgetsByCategory[$gadget->getCategory()] = $gadget;
 54+ $gadgetsByCategory[$gadget->getCategory()][] = $gadget;
5555 }
5656
5757 foreach ( $gadgetsByCategory as $category => $gadgets ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r95981RL2: Make list=gadgetcategories work againcatrope13:31, 1 September 2011

Status & tagging log