[ticket/12366] Expanded event vars

PHPBB3-12366