XML format: fix "Unrecognized parameter" warning
authorKevin Israel <pleasestand@live.com>
Sat, 23 Feb 2013 21:19:29 +0000 (16:19 -0500)
committerKevin Israel <pleasestand@live.com>
Sat, 23 Feb 2013 21:19:29 +0000 (16:19 -0500)
commit5be9e2843990ad3b946a7938e01319b54c0d6265
treef73e248171b7a1bbf6505eac6a506f490ef302e8
parentbe31fba35fad63ceb170c4ae9d860c3f3dfabf32
XML format: fix "Unrecognized parameter" warning

ApiMain::reportUnusedParams() is called before the XML formatter is
executed, so using "includexmlnamespace" or another such parameter
causes the incorrect generation of a warning. This patch corrects
the issue by explicitly excluding valid formatter parameters from
the list of unused parameters.

This does not need a release note because MediaWiki 1.20 did not
generate this kind of warning.

Change-Id: I269a6e07aa245099c811947d7832e1aa6fcfb9ec
includes/api/ApiMain.php