1. 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

Discussion in 'Resolved Bug Reports' started by Shadab, Dec 21, 2010.

  1. Shadab

    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. :)
     
    Vincent likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    Might as well allow it.
     
    Vincent and Shadab like this.

Share This Page