Fix ApiQueryLogEvents::addLogParams for unknown types using the new format
authorMarius Hoch <hoo@online.de>
Tue, 18 Dec 2012 18:02:08 +0000 (19:02 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 20 Dec 2012 13:04:33 +0000 (13:04 +0000)
commit6571047c31dc46f57c3fb82ad2ef4b5ec9d8e105
tree9de892f38464d32a7b20bc998269f89d3867d07f
parenta4adef8658dd18442dafeb0d226f8d90446bcb75
Fix ApiQueryLogEvents::addLogParams for unknown types using the new format

Fixed ApiQueryLogEvents::addLogParams for unknown (probably extension)
log types which use the new log format (with keys like 4:foo:paramname).
Until now such keys we're directly put into the XML output resulting
in invalid XML (see bug 43221, which will be fixed by this). To prevent
this we just remove everything except the plain parameter name and use that
as key for the output.

Change-Id: I1a3c7ac624eb575b879d068d47d3a13c9972b1a1
includes/api/ApiQueryLogEvents.php