Changeset 19016


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

Legend:

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

    r19015 r19016  
    6161 
    6262    function isSmartphone(){ 
    63         $useragents = array[ 
    64     'iPhone',         // Apple iPhone 
     63        $useragents = array( 
     64            'iPhone',         // Apple iPhone 
    6565    'iPod',           // Apple iPod touch 
    6666    'Android',        // 1.5+ Android 
     
    7575    'incognito',      // Other iPhone browser 
    7676    'webmate'         // Other iPhone browser 
    77         ]; 
    78          
     77        ); 
     78 
    7979        if(preg_match('/'.user.'/', $subject)) 
    8080        var pattern = new RegExp(useragents.join('|'), 'i'); 
Note: See TracChangeset for help on using the changeset viewer.