Changeset 16672


Ignore:
Timestamp:
2007/11/04 03:27:54 (16 years ago)
Author:
naka
Message:

blocのユーザテンプレートを優先するように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/helper/SC_Helper_PageLayout.php

    r16671 r16672  
    209209                    if ($val['php_path'] != '') { 
    210210                        $arrNavi[$key]['php_path'] = HTML_PATH . $val['php_path']; 
    211                         $arrNavi[$key]['include'] = "<!--{include file='".$val['php_path']."'}-->"; 
    212211                    }else{ 
    213                         $arrNavi[$key]['tpl_path'] = TEMPLATE_DIR . $val['tpl_path']; 
    214                         $arrNavi[$key]['include'] = "<!--{include file='". TEMPLATE_DIR . $val['tpl_path'] ."'}-->"; 
     212                        $user_block_path = USER_PATH . $val['tpl_path']; 
     213                        if(file_exists($user_block_path)) { 
     214                           $arrNavi[$key]['tpl_path'] = $user_block_path; 
     215                        } else { 
     216                            $arrNavi[$key]['tpl_path'] = TEMPLATE_DIR . $val['tpl_path']; 
     217                        } 
    215218                    } 
    216  
    217219                    $arrRet[] = $arrNavi[$key]; 
    218220                } 
Note: See TracChangeset for help on using the changeset viewer.