Also include stack name in type. This will allow more index files than one ...
authorRoland Haeder <roland@mxchange.org>
Tue, 20 May 2014 19:50:27 +0000 (21:50 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 20 May 2014 19:50:27 +0000 (21:50 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/factories/stacks/class_FileStackFactory.php

index 8f0494e..810b808 100644 (file)
@@ -54,7 +54,7 @@ class FileStackFactory extends ObjectFactory {
                        $stackInstance = Registry::getRegistry()->getInstance($stackName . '_stack');
                } else {
                        // Get the handler instance
                        $stackInstance = Registry::getRegistry()->getInstance($stackName . '_stack');
                } else {
                        // Get the handler instance
-                       $stackInstance = self::createObjectByConfiguredName($prefix . '_' . $stackName . '_stack_class', array($stackFileName, $prefix));
+                       $stackInstance = self::createObjectByConfiguredName($prefix . '_' . $stackName . '_stack_class', array($stackFileName, $prefix . '_' . $stackName));
 
                        // Add it to the registry
                        Registry::getRegistry()->addInstance($stackName . '_stack', $stackInstance);
 
                        // Add it to the registry
                        Registry::getRegistry()->addInstance($stackName . '_stack', $stackInstance);