From: Roland Häder Date: Wed, 22 Aug 2012 20:39:38 +0000 (+0000) Subject: Also this ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1626e2d68fd6ffdcbd417db2b505a25ed838767a;p=hub.git Also this ... --- diff --git a/application/hub/main/template/class_ b/application/hub/main/template/class_ index 8543d31e7..39c17a160 100644 --- a/application/hub/main/template/class_ +++ b/application/hub/main/template/class_ @@ -23,7 +23,7 @@ * along with this program. If not, see . */ die('YOU NEED TO REPLACE ???, !!! AND ||| IN THIS CLASS BEFORE YOU CAN USE IT.'); -class Xml???TemplateEngine extends BaseTemplateEngine implements CompileableTemplate, Registerable { +class Xml???TemplateEngine extends BaseXmlTemplateEngine implements CompileableTemplate, Registerable { /** * Main nodes in the XML tree */ diff --git a/application/hub/main/template/class_BaseXmlTemplateEngine.php b/application/hub/main/template/class_BaseXmlTemplateEngine.php index 002767418..753c9df65 100644 --- a/application/hub/main/template/class_BaseXmlTemplateEngine.php +++ b/application/hub/main/template/class_BaseXmlTemplateEngine.php @@ -78,6 +78,9 @@ class BaseXMLTemplateEngine extends BaseTemplateEngine { * read-protected */ protected function initXmlTemplateEngine ($typePrefix, $xmlTemplateType) { + // Get template instance + $applicationInstance = Registry::getRegistry()->getInstance('app'); + // Determine base path $templateBasePath = $this->getConfigInstance()->getConfigEntry('application_base_path') . $applicationInstance->getRequestInstance()->getRequestElement('app') . '/';