Changeset 19015


Ignore:
Timestamp:
2010/11/06 20:56:28 (13 years ago)
Author:
miningbrownie
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camp/camp-2_5-E/data/class/SC_Display.php

    r19014 r19015  
    6161 
    6262    function isSmartphone(){ 
    63         var useragents = [ 
     63        $useragents = array[ 
    6464    'iPhone',         // Apple iPhone 
    6565    'iPod',           // Apple iPod touch 
     
    7777        ]; 
    7878         
    79         if(preg_match('/'..'/', $subject)) 
     79        if(preg_match('/'.user.'/', $subject)) 
    8080        var pattern = new RegExp(useragents.join('|'), 'i'); 
    8181        return pattern.test(navigator.userAgent); 
Note: See TracChangeset for help on using the changeset viewer.