diff --git a/libraries/src/Application/SiteApplication.php b/libraries/src/Application/SiteApplication.php index 856ebde2df96e..b4e9ab788ccc4 100644 --- a/libraries/src/Application/SiteApplication.php +++ b/libraries/src/Application/SiteApplication.php @@ -875,10 +875,23 @@ public function setTemplate($template, $styleParams = null) { $this->template = new \stdClass; $this->template->template = $template; + + $this->template->inheritable = 0; + $this->template->parent = ''; if ($styleParams instanceof Registry) { $this->template->params = $styleParams; + + if (isset($styleParams->inheritable)) + { + $this->template->inheritable = $styleParams->inheritable; + } + + if (isset($styleParams->parent)) + { + $this->template->parent = $styleParams->parent; + } } else {