http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95955
Revision: 95955
Author: krinkle
Date: 2011-09-01 10:05:21 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
Follows-up r95954: Fix case &ganames& and &ganames=&. Falsey is not enough,
empty string or empty array should be used as 'has filter, no titles'
Modified Paths:
--------------
branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php
Modified: branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php
===================================================================
--- branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php 2011-09-01
09:56:16 UTC (rev 95954)
+++ branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php 2011-09-01
10:05:21 UTC (rev 95955)
@@ -53,7 +53,7 @@
$repo = new LocalGadgetRepo( array() );
$result = array();
- if ( $this->neededNames ) {
+ if ( $this->neededNames !== false ) {
// Get all requested gadgets by name
$names = $this->neededNames;
} else {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs