API param validation: Add wrong value to error message on user params
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 9 Mar 2013 21:14:03 +0000 (22:14 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 9 Mar 2013 21:14:03 +0000 (22:14 +0100)
commit435d16e003ad51bf47084969f5e3ecebda41cec9
tree5b989a0a0ee8b05c9a3a3f418826f713b3509aca
parentc8543fe0bffafec21f2d2774ecc25cdfdcd44c84
API param validation: Add wrong value to error message on user params

It is always nice to get the wrong value back to know it.
Refactor a bit to avoid the array wrapping and unwrapping for non-multi
params.

Adjust another variable, add doc comments, removed a empty line and
reorder a condition for easy reading.

Change-Id: Ia91aa5908b82ad1209dc7da1139f91e1f2b45fac
includes/api/ApiBase.php