Fixed renderPushTemplate may not reset the language as expected

Affected version


Well-known member
In renderPushTemplate;

$pushContent = $this->templater->renderTemplate($template, $params);

If renderTemplate throws, due to the lack of a try ... finally block, the language is left as the receivers.

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.4).

Change log:
Move restoration of original language and style after push template render to finally block
Any changes made as a result of this issue being resolved may not be rolled out here until later.