$templateInstance->assignTemplateWithVariable('footer', 'footer');
// Load the master template
- $templateInstance->loadCodeTemplate($this->getApplicationInstance()->getMasterTemplate());
+ $templateInstance->loadCodeTemplate($this->getApplicationInstance()->buildMasterTemplateName());
// Then compile it again
$templateInstance->compileVariables();