mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 21:49:21 +03:00
Bugfixes and more conversions to PHP 7
This commit is contained in:
parent
2cada68f41
commit
3a7ec4ecb0
100 changed files with 238 additions and 992 deletions
|
|
@ -19,10 +19,8 @@ if (!\defined('RAINLOOP_APP_LIBRARIES_PATH'))
|
|||
|
||||
/**
|
||||
* @param string $sClassName
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
function rainLoopSplAutoloadRegisterFunction($sClassName)
|
||||
function rainLoopSplAutoloadRegisterFunction($sClassName) : void
|
||||
{
|
||||
if ($sClassName && '\\' === $sClassName[0])
|
||||
{
|
||||
|
|
@ -39,11 +37,10 @@ if (!\defined('RAINLOOP_APP_LIBRARIES_PATH'))
|
|||
$sPrefix = 'Mobile_Detect/namespaced/';
|
||||
}
|
||||
|
||||
return include RAINLOOP_APP_LIBRARIES_PATH.$sPrefix.\strtr($sClassName, '\\', '/').'.php';
|
||||
include RAINLOOP_APP_LIBRARIES_PATH.$sPrefix.\strtr($sClassName, '\\', '/').'.php';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
\spl_autoload_register('rainLoopSplAutoloadRegisterFunction', false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue