mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
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);
|
$parts = explode('\\', $class);
|
||||||
if (array_shift($parts) != 'EGroupware') return; // not our prefix
|
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/';
|
$base = EGW_INCLUDE_ROOT.'/'.$app.'/src/';
|
||||||
$path = $base.implode('/', $parts).'.php';
|
$path = $base.implode('/', $parts).'.php';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user