need to ucfirst() the $app name when using it as a class name part.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 8 Jul 2010 18:53:12 +0000 (14:53 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 8 Jul 2010 18:53:12 +0000 (14:53 -0400)
framework/Core/lib/Horde/Registry.php

index 3f2f07f..2f4567f 100644 (file)
@@ -1437,7 +1437,7 @@ class Horde_Registry
         if (!is_null($fileroot) &&
             is_dir($fileroot . '/lib/' . $fileprefix)) {
             foreach (scandir($fileroot . '/lib/' . $fileprefix) as $file) {
-                $classname = $app . '_' . $prefix . '_' . basename($file, '.php');
+                $classname = Horde_String::ucfirst($app) . '_' . $prefix . '_' . basename($file, '.php');
                 if (class_exists($classname)) {
                     $classes[] = $classname;
                 }