Ignore:
Timestamp:
2011/01/02 15:20:54 (13 years ago)
Author:
fukuda
Message:

#880(mobile/sphoneディレクトリを削除)に対応。まずmobileのみ意図通りの動作になるように一部コミット

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/html/require.php

    r19805 r19809  
    3030require_once HTML_REALDIR . HTML2DATA_DIR . 'require_base.php'; 
    3131 
    32 // スマートフォンの場合、リダイレクト 
    33 SC_SmartphoneUserAgent::sfAutoRedirectSmartphoneSite(); 
    34  
    35 // 絵文字変換 (除去) フィルターを組み込む。 
    36 ob_start(array('SC_MobileEmoji', 'handler')); 
     32if ( Net_UserAgent_Mobile::isMobile() === true ){ 
     33    $objMobile = new SC_Helper_Mobile_Ex(); 
     34    $objMobile->sfMobileInit(); 
     35    ob_start(); 
     36     
     37} else { 
     38     
     39    // スマートフォンの場合、リダイレクト 
     40    SC_SmartphoneUserAgent::sfAutoRedirectSmartphoneSite(); 
     41     
     42    // 絵文字変換 (除去) フィルターを組み込む。 
     43    ob_start(array('SC_MobileEmoji', 'handler')); 
     44} 
    3745?> 
Note: See TracChangeset for help on using the changeset viewer.