mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
reworked mobil browser detection to use html::$ua_mobile
This commit is contained in:
parent
5672a0aa32
commit
8c752fbacf
@ -49,13 +49,7 @@ class jdots_framework extends egw_framework
|
||||
*/
|
||||
public static function is_supported_user_agent()
|
||||
{
|
||||
$agent = $_SERVER['HTTP_USER_AGENT'];
|
||||
|
||||
foreach(array('iPhone','iPad','Android','SymbianOS') as $pattern)
|
||||
{
|
||||
if (stripos($agent,$pattern) !== false) return false;
|
||||
}
|
||||
if (html::$user_agent == 'msie' && html::$ua_version < 7)
|
||||
if (html::$ua_mobile || html::$user_agent == 'msie' && html::$ua_version < 7)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user