forked from extern/egroupware
allow namespaces for apps with multiple caps like OpenID while still using all lowercase directory-names
This commit is contained in:
parent
7e5d5c3d97
commit
afdafc1385
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user