mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-24 07:53:37 +00:00
d66b4c6090
We only have 65535 bytes, let's use them wisely. Prior to Ib2db241a in core (1.22wmf12) even binary page properties were sometimes shown as plaintext (e.g. on Special:PagesWithProp). Thus this introduces a "soft dependency" on that change. No backwards-incompatible changes were made in public methods. Added two new ones: * Add TemplateDataBlob#getJSONForDatabase which returns compressed JSON, use it where applicable. * Add TemplateDataBlob::newFromDatabase which accept compressed and uncompressed JSON, use it where applicable. Use a long pseudorandom string in the test. Bug: 51740 Change-Id: Ie66b0dd6b6dab6f8648e78595c41e52d9c704d57 |
||
---|---|---|
.. | ||
ApiTemplateData.php |