added files for database format-upgrade
[core.git] / inc / main / classes / factories / client / class_ClientFactory.php
index 4c7c4211b37f25947702484e2738715cb1ba2443..56ad8ab4f44cd8967a3d51935218c0e117193262 100644 (file)
@@ -48,9 +48,9 @@ class ClientFactory extends ObjectFactory {
                $registryKey = strtolower($protocolInstance->getProtocolName()) . '_client';
 
                // Is the key already in registry?
-               if (Registry::getRegistry()->instanceExists($registryKey)) {
+               if (GenericRegistry::getRegistry()->instanceExists($registryKey)) {
                        // Then use that instance
-                       $clientInstance = Registry::getRegistry()->getInstance($registryKey);
+                       $clientInstance = GenericRegistry::getRegistry()->getInstance($registryKey);
 
                        // Set socket resource
                        $clientInstance->setSocketResource($socketResource);
@@ -65,7 +65,5 @@ class ClientFactory extends ObjectFactory {
                // Return the prepared instance
                return $clientInstance;
        }
-}
 
-// [EOF]
-?>
+}