treat true as empty string, skip false in xml format
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 19 Jan 2014 09:42:47 +0000 (10:42 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 19 Jan 2014 09:42:47 +0000 (10:42 +0100)
commite965a1459de80f8f5017a8199b3ab35782a67b3e
tree7373d80edfe9fee8166a188139e29fe624890106
parent6a2d25eed09c311c70657789b3f7a841bc5363db
treat true as empty string, skip false in xml format

The xml format gives a empty attribute to indicate a true, for example
top="" or anon="". The new meta=filerepoinfo module gives natural
booleans to the xml formatter, which than will converted to strings,
that gives a empty attribute for false and a attribute with the value
"1" for true attributes. Change this behaviour in xml formatter to allow
the natural booleans on the other formats like json, which support that
better than xml.

Bug: 59953
Change-Id: Iedf43aae2e624e8e15c9cf102d24b8365110164a
includes/api/ApiFormatXml.php