• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Custom Container Template not supported by XenForo_ViewRenderer_HtmlPublic


Well-known member
The HtmlInstall and HtmlAdmin view renderers allow the main container template to be changed using the "containerTemplate" parameter...
$templateName = (!empty($params['containerTemplate']) ? $params['containerTemplate'] : 'PAGE_CONTAINER');
$template = $this->createTemplateObject($templateName, $params);
But the HtmlPublic view renderer doesn't check for any such parameter and renders the "page_container" template directly.
$template = $this->createTemplateObject('PAGE_CONTAINER', $params);

Assuming this was not an intentional omission. :)