Ignore:
Timestamp:
2010/12/29 16:50:44 (16 years ago)
Author:
fukuran
Message:

#880(mobile/sphoneディレクトリを削除)に対応する、
影響の少ない部分を先行してコミット

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_MobileUserAgent.php

    r18701 r19787  
    148148    } 
    149149 
    150     /** 
    151      * 携帯端末の場合、モバイルサイトへリダイレクトする 
    152      * 
    153      * @return void 
    154      */ 
    155     function sfAutoRedirectMobileSite() { 
    156         // 携帯端末ではない場合、処理しない 
    157         if (SC_MobileUserAgent::isNonMobile()) return; 
    158  
    159         $url = SC_Utils_Ex::sfIsHTTPS() 
    160             ? MOBILE_SSL_URL 
    161             : MOBILE_SITE_URL 
    162         ; 
    163  
    164         $url .= (preg_match('|^' . URL_DIR . '(.*)$|', $_SERVER['REQUEST_URI'], $matches)) 
    165             ? $matches[1] 
    166             : '' 
    167         ; 
    168  
    169         header("Location: ". SC_Utils_Ex::sfRmDupSlash($url)); 
    170         exit; 
    171     } 
    172150} 
    173151?> 
Note: See TracChangeset for help on using the changeset viewer.