Changeset 19021


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

Legend:

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

    r19020 r19021  
    5353        if($nu->isMobile()){ 
    5454            $retDevice = 1; 
    55         }elseif () 
     55        }elseif ($this->isSmartphone()){ 
     56        }else{ 
    5657        if($this->autoSet){ 
    5758            $this->setDevice($nu); 
     
    7879 
    7980        $pattern = implode("|", $useragents); 
    80          
    81         if(preg_match('/['.$pattern.']/', $_SERVER['HTTP_USER_AGENT'])) 
    82         var pattern = new RegExp(useragents.join('|'), 'i'); 
    83         return pattern.test(navigator.userAgent); 
     81        return preg_match('/['.$pattern.']/', $_SERVER['HTTP_USER_AGENT']); 
     82 
    8483    } 
    8584 
Note: See TracChangeset for help on using the changeset viewer.