Ignore:
Timestamp:
2011/10/28 18:58:18 (15 years ago)
Author:
shutta
Message:

#1527 (端末種別の判別ルーチンの統一)
Net_UserAgent_Mobile::isMobile()な処理をSC_Display_Ex::detectDevice()に統一。
但し、SC_Mobile_UserAgent::isNonMobile()は、対象から除外した。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/helper/SC_Helper_Purchase.php

    r21259 r21302  
    431431            } 
    432432 
    433             if (Net_UserAgent_Mobile::isMobile() 
    434                 && in_array('email', $keys)) { 
     433            if ((SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) 
     434                && in_array('email', $keys) 
     435            ) { 
    435436                $email_mobile = $objCustomer->getValue('email_mobile'); 
    436437                if (empty($email_mobile)) { 
     
    10601061    function sendOrderMail($orderId) { 
    10611062        $mailHelper = new SC_Helper_Mail_Ex(); 
    1062         $mailHelper->sfSendOrderMail($orderId, 
    1063                                      SC_MobileUserAgent_Ex::isMobile() ? 2 : 1); 
     1063        $template_id = 
     1064            SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE ? 2 : 1; 
     1065        $mailHelper->sfSendOrderMail($orderId, $template_id); 
    10641066    } 
    10651067 
Note: See TracChangeset for help on using the changeset viewer.