Changeset 19266


Ignore:
Timestamp:
2010/11/07 00:34:40 (12 years ago)
Author:
no61
Message:

スマートフォン判定部分の修正

File:
1 edited

Legend:

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

    r19159 r19266  
    3131    /** 
    3232     * スマートフォンかどうかを判別する。 
     33     * $_SESSION['pc_disp'] = true の場合はPC表示。 
    3334     * 
    3435     * @return boolean 
    3536     */ 
    3637    function isSmartphone() { 
    37         $objAgent =& Net_UserAgent_Mobile::singleton(); 
    38         if (Net_UserAgent_Mobile::isError($objAgent)) { 
    39             return false; 
    40         } else { 
    41             // SPでかつPC表示OFF 
    42             return $objAgent->isSmartphone() && !SC_SmartphoneUserAgent::getSmartphonePcFlag(); 
    43         } 
     38        $nu = new Net_UserAgent_Mobile(); 
     39        // SPでかつPC表示OFFの場合 
     40        return $nu->isSmartphone() && !SC_SmartphoneUserAgent::getSmartphonePcFlag(); 
    4441    } 
    4542 
Note: See TracChangeset for help on using the changeset viewer.