API: Warn when unsupported PHP array syntax is used
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 17 Apr 2014 14:24:30 +0000 (10:24 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 17 Apr 2014 14:24:30 +0000 (10:24 -0400)
commit4c6d01f82484c2e47210260a9d2a87b2c9fb918a
tree176764fa2b2b8240469ab9076edd416262a3e67b
parent7dab5bfc68376752f3a607c5b5ab81eea8a10594
API: Warn when unsupported PHP array syntax is used

The API takes multi-valued parameters as key=value1|value2|value3, not
key[]=value1&key[]=value2&key[]=value3, in part because the latter is
overly verbose when the API encourages use of large arrays.

But when someone, not knowing this, does accidentally use the verbose
syntax, they should get a warning instead of having the parameter be
silently ignored.

Bug: 64057
Change-Id: I32a16efb8028d7f6d120d20dfc886f08ed9ec97d
includes/api/ApiMain.php