Fixed Custom Container Template not supported by XenForo_ViewRenderer_HtmlPublic

Shadab

Well-known member
The HtmlInstall and HtmlAdmin view renderers allow the main container template to be changed using the "containerTemplate" parameter...
PHP:
$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.
PHP:
$template = $this->createTemplateObject('PAGE_CONTAINER', $params);


Assuming this was not an intentional omission. :)
 
Top Bottom