mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
issue 83 added patch for mobile check
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9817 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b2fdd16f6e
commit
186a6b640c
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class Mobile {
|
||||||
|
|
||||||
function isMobileCheckByAgent()
|
function isMobileCheckByAgent()
|
||||||
{
|
{
|
||||||
return !!preg_match('/(iPod|iPhone|Android|BlackBerry|SymbianOS|SCH-M\d+|Googlebot-Mobile)/',$_SERVER['HTTP_USER_AGENT']);
|
return !!preg_match('/(iPod|iPhone|Android|BlackBerry|SymbianOS|SCH-M\d+|SPH-M\d+|Windows Phone|Dorothy Browser|Googlebot-Mobile)/',$_SERVER['HTTP_USER_AGENT']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setMobile($ismobile)
|
function setMobile($ismobile)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue