]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/factories/xml/class_XmlTemplateEngineFactory.php
Continued:
[core.git] / framework / main / classes / factories / xml / class_XmlTemplateEngineFactory.php
index f6b5bda63057f056e847ad5f7c15b8dd3b8d192f..18b85097994e65957e06d42761d5fbd3f4fddd85 100644 (file)
@@ -63,9 +63,9 @@ class XmlTemplateEngineFactory extends BaseFactory {
                }
 
                // Do we have an instance in the registry?
-               if (ObjectRegistry::getRegistry()->instanceExists($configKey)) {
+               if (ObjectRegistry::getRegistry('generic')->instanceExists($configKey)) {
                        // Then use this instance
-                       $templateInstance = ObjectRegistry::getRegistry()->getInstance($configKey);
+                       $templateInstance = ObjectRegistry::getRegistry('generic')->getInstance($configKey);
                } else {
                        // Get the XML template instance
                        $templateInstance = ObjectFactory::createObjectByConfiguredName($configKey);
@@ -80,7 +80,7 @@ class XmlTemplateEngineFactory extends BaseFactory {
                        $templateInstance->enableXmlCompacting();
 
                        // Set the instance in registry for further use
-                       ObjectRegistry::getRegistry()->addInstance($configKey, $templateInstance);
+                       ObjectRegistry::getRegistry('generic')->addInstance($configKey, $templateInstance);
                }
 
                // Return the instance