mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 11:37:41 +03:00
Replaced: Mobile_Detect with simple version
This is not finished because detection should be based on screen size in inches (retina pixels)
This commit is contained in:
parent
10a00f8391
commit
3948f73fb1
10 changed files with 201 additions and 2052 deletions
|
|
@ -10,7 +10,7 @@ if (!\defined('RAINLOOP_APP_LIBRARIES_PATH'))
|
|||
function rainLoopSplAutoloadNamespaces() : array
|
||||
{
|
||||
return RAINLOOP_INCLUDE_AS_API_DEF ? array('RainLoop', 'Predis', 'MailSo') :
|
||||
array('RainLoop', 'PHPThumb', 'Predis', 'SabreForRainLoop', 'Imagine', 'Detection', 'MailSo');
|
||||
array('RainLoop', 'PHPThumb', 'Predis', 'SabreForRainLoop', 'Imagine', 'MailSo');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -27,12 +27,6 @@ if (!\defined('RAINLOOP_APP_LIBRARIES_PATH'))
|
|||
{
|
||||
if (0 === \strpos($sClassName, $sNamespaceName.'\\'))
|
||||
{
|
||||
$sPrefix = '';
|
||||
if ('Detection' === $sNamespaceName)
|
||||
{
|
||||
$sPrefix = 'Mobile_Detect/namespaced/';
|
||||
}
|
||||
|
||||
include RAINLOOP_APP_LIBRARIES_PATH.$sPrefix.\strtr($sClassName, '\\', '/').'.php';
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue