From 8c752fbacf0eab7a8a33cddc36ef7243c810ad7a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 3 Jun 2011 07:51:04 +0000 Subject: [PATCH] reworked mobil browser detection to use html::$ua_mobile --- jdots/inc/class.jdots_framework.inc.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/jdots/inc/class.jdots_framework.inc.php b/jdots/inc/class.jdots_framework.inc.php index 0015e22f88..70598b94a3 100755 --- a/jdots/inc/class.jdots_framework.inc.php +++ b/jdots/inc/class.jdots_framework.inc.php @@ -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; }