mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
df713170e0
It appears like it's currently not possible to reach this code with an invalid template name like `{{foo}}`. But this is not guaranteed. The purpose of this code is to call the TemplateData API. This is pointless when a title is invalid. We know a page with this name can't exist. So we skip it. But that's all this code cares about. It should not crash. Nor does it need to report this situation. This is related to the discussion in Ic364e75. Change-Id: If9bacc91b1c7bb110b33bfd395e1cbdf538e6c22 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
preinit | ||
tests | ||
themes | ||
ui |