Last modified: 2014-04-29 14:10:48 UTC
For example, this query does not give any indication that "guprop" was ignored: https://www.mediawiki.org/w/api.php?action=query&format=jsonfm&prop=globalusage&titles=File:Swallow%20flying%20drinking.jpg&guprop[]=url&guprop[]=namespace&gufilterlocal=1
Change 126990 had a related patch set uploaded by Anomie: API: Warn when unsupported PHP array syntax is used https://gerrit.wikimedia.org/r/126990
These URLs are produced by mw.Api when as array is passed as argument: new mw.Api().get( { action: 'query', prop: 'globalusage', titles: 'File: Swallow flying drinking.jpg', guprop: ['url', 'namespace'], gufilterlocal: 1} ); as opposed to new mw.Api().get( { action: 'query', prop: 'globalusage', titles: 'File: Swallow flying drinking.jpg', guprop: 'url|namespace', gufilterlocal: 1} ); Not sure if this is a bug or a feature, but it is very counterintuitive.
(In reply to Tisza Gergő from comment #2) > These URLs are produced by mw.Api when as array is passed as argument: [...] > Not sure if this is a bug or a feature, but it is very counterintuitive. If it's a bug, it should be filed as a separate bug against the JavaScript component. You might refer to bug 10262 when doing so.
Change 126990 merged by jenkins-bot: API: Warn when unsupported PHP array syntax is used https://gerrit.wikimedia.org/r/126990
Should be deployed to WMF wikis with 1.24wmf3, see https://www.mediawiki.org/wiki/MediaWiki_1.24/Roadmap for the schedule.