Hotfix structure class construction. A real fix will come later.
authorGunnar Wrobel <p@rdus.de>
Fri, 2 Oct 2009 19:16:08 +0000 (21:16 +0200)
committerGunnar Wrobel <p@rdus.de>
Fri, 2 Oct 2009 19:16:08 +0000 (21:16 +0200)
framework/Kolab_Server/lib/Horde/Kolab/Server/Factory.php

index a1c9556..06d8e58 100644 (file)
@@ -111,11 +111,12 @@ class Horde_Kolab_Server_Factory
         } catch (ReflectionException $e) {
         }
 
-        $class = 'Horde_Kolab_Server_Structure_' . ucfirst(basename($driver));
-        if (!class_exists($class)) {
-            throw new Horde_Kolab_Server_Exception('Structure type definition "' . $class . '" missing.');
+        //@todo: either we use driver names or real class names.
+        //$class = 'Horde_Kolab_Server_Structure_' . ucfirst(basename($driver));
+        if (!class_exists($driver)) {
+            throw new Horde_Kolab_Server_Exception('Structure type definition "' . $driver . '" missing.');
         }
-        $structure = new $class($params);
+        $structure = new $driver($params);
         return $structure;
     }
 }
\ No newline at end of file