r95993 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95992‎ | r95993 | r95994 >
Date:14:52, 1 September 2011
Author:catrope
Status:ok
Tags:
Comment:
RL2: Update example for list=gadgets, add a FIXME
Modified paths:
  • /branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php (modified) (history)
  • /branches/RL2/extensions/Gadgets/backend/LocalGadgetRepo.php (modified) (history)

Diff [purge]

Index: branches/RL2/extensions/Gadgets/backend/LocalGadgetRepo.php
@@ -15,6 +15,7 @@
1616 parent::__construct( $options );
1717
1818 // TODO: define options
 19+ // FIXME if there are none, drop the mandatory param
1920 }
2021
2122 public function getGadgetNames() {
Index: branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php
@@ -211,7 +211,7 @@
212212 'Get a list of gadgets belonging to caregory "foo":',
213213 ' api.php?action=query&list=gadgets&gacategories=foo',
214214 'Get information about gadgets named "foo" and "bar":',
215 - ' api.php?action=query&list=gadgets&ganames=foo|bar&gaprop=name|desc|category',
 215+ ' api.php?action=query&list=gadgets&ganames=foo|bar&gaprop=name|desc|metadata',
216216 'Get a list of gadgets enabled by current user:',
217217 ' api.php?action=query&list=gadgets&gaenabledonly',
218218 );

Status & tagging log