From afdafc1385601a144168cef5912b31582a0a3ecf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 4 Apr 2019 12:23:58 +0200 Subject: [PATCH] allow namespaces for apps with multiple caps like OpenID while still using all lowercase directory-names --- api/src/autoload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/autoload.php b/api/src/autoload.php index 9cdee16660..2e18707be9 100755 --- a/api/src/autoload.php +++ b/api/src/autoload.php @@ -41,7 +41,7 @@ spl_autoload_register(function($class) $parts = explode('\\', $class); if (array_shift($parts) != 'EGroupware') return; // not our prefix - $app = lcfirst(array_shift($parts)); + $app = strtolower(array_shift($parts)); $base = EGW_INCLUDE_ROOT.'/'.$app.'/src/'; $path = $base.implode('/', $parts).'.php';