allow namespaces for apps with multiple caps like OpenID while still using all lowercase directory-names

This commit is contained in:
Ralf Becker 2019-04-04 12:23:58 +02:00
parent 7e5d5c3d97
commit afdafc1385

View File

@ -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';