Use 'self' here
authorRoland Häder <roland@mxchange.org>
Thu, 7 Feb 2013 20:06:38 +0000 (20:06 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 7 Feb 2013 20:06:38 +0000 (20:06 +0000)
inc/classes/main/factories/database/class_DatabaseWrapperFactory.php

index 280fef3..9e8189d 100644 (file)
@@ -39,7 +39,7 @@ class DatabaseWrapperFactory extends ObjectFactory {
                        $wrapperInstance = $registryInstance->getInstance($wrapperName);
                } else {
                        // Get the registry instance
-                       $wrapperInstance = ObjectFactory::createObjectByConfiguredName($wrapperName);
+                       $wrapperInstance = self::createObjectByConfiguredName($wrapperName);
 
                        // Set the instance in registry for further use
                        $registryInstance->addInstance($wrapperName, $wrapperInstance);