added missing variable to postEvent
Merge pull request #5866 from mgazdzik/themeHook

added missing variable to postEvent