mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-15 11:58:51 +00:00
c355a8fac4
This fixes parts of a TODO in the code. Specifically: * When an InterfaceText is an object, it can not be any object, but must be an stdClass. * It can't be empty. * Language codes must be non-empty strings. * Values must be strings. I'm intentionally not adding more validation for the language codes, as this needs discussion (what values should be allowed?), and can potentially break existing pages. Same for empty strings. This can easily happen when users manually create a <templatedata> tag and copy-paste pieces that are meant to be filled in later. Empty strings are not really invalid (again, this needs discussion), but might be something a client want's to ignore. Change-Id: I0facaa08cffe5a5a038423a58d55bc90a40b2d75 |
||
---|---|---|
.. | ||
api | ||
TemplateDataBlob.php | ||
TemplateDataCompressedBlob.php | ||
TemplateDataHooks.php |