Changeset 17591


Ignore:
Timestamp:
2008/09/02 18:57:04 (16 years ago)
Author:
nakanishi
Message:

キャンペーンページの判定方法を変更

File:
1 edited

Legend:

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

    r16741 r17591  
    7373    /* キャンペーンページならフレームを変更 */ 
    7474    function pageView($objView, $site_frame = SITE_FRAME) { 
    75         if($this->getIsCampaign()) { 
    76             $objView->display(CAMPAIGN_TEMPLATE_PATH . $this->getCampaignDir()  . "/active/site_frame.tpl"); 
     75        $self_path = explode("/",$_SERVER['PHP_SELF']); 
     76        $campaign_dir = explode("/",CAMPAIGN_DIR); 
     77         
     78        $is_campaign = array_search( $campaign_dir[0] , $self_path ); 
     79         
     80        if( strlen($is_campaign) > 0 ) { 
     81            $objView->display($site_frame); 
    7782        } else { 
    7883            $objView->display($site_frame); 
Note: See TracChangeset for help on using the changeset viewer.