Ignore:
Timestamp:
2014/03/27 15:22:37 (8 years ago)
Author:
kimoto
Message:

#2507 スマホの判定にMobile_Detect.phpを使い最新のスマホにも対応できるように
修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/SC_SmartphoneUserAgent.php

    r23124 r23354  
    3737    public function isSmartphone() 
    3838    { 
    39         $nu = new Net_UserAgent_Mobile(); 
     39        $detect = new Mobile_Detect; 
    4040        // SPでかつPC表示OFFの場合 
    41         return $nu->isSmartphone() && !SC_SmartphoneUserAgent_Ex::getSmartphonePcFlag(); 
     41        // TabletはPC扱い 
     42        return ($detect->isMobile() && !$detect->isTablet()) && !SC_SmartphoneUserAgent_Ex::getSmartphonePcFlag(); 
    4243    } 
    4344 
Note: See TracChangeset for help on using the changeset viewer.