[ticket/12391] Assign variables to core.posting_modify_template_vars

Assign variables to event "core.posting_modify_template_vars".
Also, fix a couple of typos.

PHPBB3-12391