* API siteinfo query no longer throws an exception for empty sifilter parameter.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 17 Nov 2008 18:13:11 +0000 (18:13 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 17 Nov 2008 18:13:11 +0000 (18:13 +0000)
commit4c54e4016f641a603bd47f27b600aaf28d7187d1
tree29b3fca4ac404f8860852dbd720747b38869a58c
parent7d12c7b8dc22324dd816a78a56c3f5dbe4cf74bc
* API siteinfo query no longer throws an exception for empty sifilter parameter.

The parameter is defined as being one of two values ('local' or '!local'), but comes back as array() if it was specified but empty... which then got overly-strictly checked against 'false', which was used internally for the case where it's unspecified, and an exception thrown internally.

Now the filter parameter is nicely ignored whether it's unspecified or specified as empty, which is good clear behavior.

As before, other values return a standard API error about invalid values being passed.
RELEASE-NOTES
includes/api/ApiQuerySiteinfo.php