From 1626e2d68fd6ffdcbd417db2b505a25ed838767a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 22 Aug 2012 20:39:38 +0000 Subject: [PATCH] Also this ... --- application/hub/main/template/class_ | 2 +- application/hub/main/template/class_BaseXmlTemplateEngine.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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') . '/'; -- 2.39.5