#5480 - Rewrite do_lang and do_lang_tempcode to not ignore params when previous params are null

  • By
  • Added
  • 2 views
Identifier #5480
Issue type Feature request or suggestion
Title Rewrite do_lang and do_lang_tempcode to not ignore params when previous params are null
Status Open
Tags

Roadmap: Over the horizon (custom)

Handling member Deleted
Addon core
Description In do_lang:
- If param 1 is null, param 2 and 3 is ignored
- if param 2 is null, param 3 is ignored
Rewrite the function to not do this. Treat null as empty string, perhaps, when passing in to the language.

In do_lang_tempcode:
I think for every null parameter, future parameters are mapped to previous parameters. For example, if param 1 is null, then 2 becomes 1 and 3 becomes 2, etc. Rewrite do_lang_tempcode to not do this; treat null as empty string.
Steps to reproduce

Additional information This is a consistency fix. It might break a lot of things, so implement with care.

EDIT: See comments; we've decided on an alternative solution.
Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated