Changeset 19400


Ignore:
Timestamp:
2010/11/07 02:38:35 (12 years ago)
Author:
kim
Message:

【開発合宿】 SC_Viewを2回生成してしまう状態だったので修正

File:
1 edited

Legend:

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

    r19371 r19400  
    4646    */ 
    4747    function hoge(LC_Page $page, $is_admin = false){ 
     48        
    4849        if(!$this->deviceSeted || !is_null($this->view)){ 
    4950            $device = ($is_admin) ? 8 : $this->detectDevice(); 
    50             $this->setDevice($device); 
     51            if (!$this->deviceSeted) { 
     52                $this->setDevice($device); 
     53            } 
    5154        } 
    5255        $this->assignobj($page); 
     56         
    5357        $this->response->setResposeBody($this->view->fetch($page->getTemplate())); 
    5458    } 
     
    8690                $this->setView(new SC_AdminView()); 
    8791        } 
     92         
    8893        $this->deviceSeted = true; 
    8994    } 
Note: See TracChangeset for help on using the changeset viewer.