From d02f39171b919f6e0cc7538d3dd6ca76658416f4 Mon Sep 17 00:00:00 2001 From: haneul Date: Sat, 24 Apr 2010 14:08:34 +0000 Subject: [PATCH] #18820891 : add android for smartphone git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7391 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- addons/smartphone/classes/smartphone.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/smartphone/classes/smartphone.class.php b/addons/smartphone/classes/smartphone.class.php index c44db018a..9ac28d955 100644 --- a/addons/smartphone/classes/smartphone.class.php +++ b/addons/smartphone/classes/smartphone.class.php @@ -16,7 +16,7 @@ return false; } - return Context::get('smartphone') || preg_match('/(iPod|iPhone|SCH\-M[0-9]+)/',$_SERVER['HTTP_USER_AGENT']); + return Context::get('smartphone') || preg_match('/(iPod|iPhone|Android|SCH\-M[0-9]+)/',$_SERVER['HTTP_USER_AGENT']); } function haveSmartphoneModule($module) { @@ -80,7 +80,7 @@ } function procSmartPhone($msg = null) { - if(preg_match('/(iPod|iPhone)/',$_SERVER['HTTP_USER_AGENT'])) { + if(preg_match('/(iPod|iPhone|Android)/',$_SERVER['HTTP_USER_AGENT'])) { Context::addHtmlHeader(''); } else if(preg_match('/SCH\-M[0-9]+/',$_SERVER['HTTP_USER_AGENT'])) { Context::addHtmlHeader('');