Changeset 23648 for branches


Ignore:
Timestamp:
2014/10/12 14:06:47 (10 years ago)
Author:
kim
Message:

#2544 r23409 をリバート

既存への影響確認が不十分のため、2.13.3としては見送ります

Location:
branches/version-2_13_3/data/class
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13_3/data/class/SC_Display.php

    r23605 r23648  
    116116                } 
    117117                $this->response->setContentType('text/html'); 
    118                 $this->setView(new SC_SiteView_Ex(true, DEVICE_TYPE_MOBILE)); 
     118                $this->setView(new SC_MobileView_Ex()); 
    119119                break; 
    120120            case DEVICE_TYPE_SMARTPHONE: 
    121                 $this->setView(new SC_SiteView_Ex(true, DEVICE_TYPE_SMARTPHONE)); 
     121                $this->setView(new SC_SmartphoneView_Ex()); 
    122122                break; 
    123123            case DEVICE_TYPE_PC: 
    124                 $this->setView(new SC_SiteView_Ex(true, DEVICE_TYPE_PC)); 
     124                $this->setView(new SC_SiteView_Ex()); 
    125125                break; 
    126126            case DEVICE_TYPE_ADMIN: 
  • branches/version-2_13_3/data/class/SC_SiteView.php

    r23546 r23648  
    2424class SC_SiteView extends SC_View_Ex 
    2525{ 
    26     public function __construct($setPrevURL = true, $device = DEVICE_TYPE_PC) 
     26    public function __construct($setPrevURL = true) 
    2727    { 
    2828        parent::__construct(); 
    29  
    30         switch ($device) { 
    31             case DEVICE_TYPE_MOBILE: 
    32                 $this->_smarty->template_dir = realpath(MOBILE_TEMPLATE_REALDIR); 
    33                 $this->_smarty->compile_dir = realpath(MOBILE_COMPILE_REALDIR); 
    34                 $this->assignTemplatePath(DEVICE_TYPE_MOBILE); 
    35                 break; 
    36  
    37             case DEVICE_TYPE_SMARTPHONE: 
    38                 $this->_smarty->template_dir = realpath(SMARTPHONE_TEMPLATE_REALDIR); 
    39                 $this->_smarty->compile_dir = realpath(SMARTPHONE_COMPILE_REALDIR); 
    40                 $this->assignTemplatePath(DEVICE_TYPE_SMARTPHONE); 
    41                 break; 
    42  
    43             case DEVICE_TYPE_PC: 
    44                 $this->_smarty->template_dir = realpath(TEMPLATE_REALDIR); 
    45                 $this->_smarty->compile_dir = realpath(COMPILE_REALDIR); 
    46                 $this->assignTemplatePath(DEVICE_TYPE_PC); 
    47                 break; 
    48         } 
    4929 
    5030        if ($setPrevURL) { 
    5131            $this->setPrevURL(); 
    5232        } 
     33    } 
    5334 
    54         SC_Helper_Plugin_Ex::hook("SC_SiteView_Construct_After", array($this)); 
     35    public function init() 
     36    { 
     37        parent::init(); 
     38 
     39        $this->_smarty->template_dir = realpath(TEMPLATE_REALDIR); 
     40        $this->_smarty->compile_dir = realpath(COMPILE_REALDIR); 
     41 
     42        $this->assignTemplatePath(DEVICE_TYPE_PC); 
    5543    } 
    5644 
  • branches/version-2_13_3/data/class/helper/SC_Helper_Mail.php

    r23606 r23648  
    181181        // 注文受付メール(携帯) 
    182182        if ($template_id == 2) { 
    183             $objMailView = new SC_SiteView_Ex(true, DEVICE_TYPE_MOBILE); 
     183            $objMailView = new SC_MobileView_Ex(); 
    184184        } else { 
    185185            $objMailView = new SC_SiteView_Ex(); 
Note: See TracChangeset for help on using the changeset viewer.