Changeset 23610


Ignore:
Timestamp:
2014/08/28 15:58:09 (10 years ago)
Author:
kimoto
Message:

#2426 ブロックのtpl_pathに絶対パスが指定できない
setBlocPathToが必要なのは、php_pathがない場合だけなので、条件を変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/helper/SC_Helper_PageLayout.php

    r23605 r23610  
    360360        foreach ($arrBlocs as $key => $value) { 
    361361            $arrBloc =& $arrBlocs[$key]; 
    362             $arrBloc['php_path'] = SC_Utils_Ex::isBlank($arrBloc['php_path']) ? '' : HTML_REALDIR . $arrBloc['php_path']; 
     362 
     363            // php_pathがある場合は、pathを追加せずにLC_Page_FrontParts_Blocで処理する 
     364            if (! SC_Utils_Ex::isBlank($arrBloc['php_path']) ) continue; 
     365 
    363366            $bloc_dir = $this->getTemplatePath($device_type_id) . BLOC_DIR; 
    364367            $arrBloc['tpl_path'] = SC_Utils_Ex::isBlank($arrBloc['tpl_path']) ? '' : $bloc_dir . $arrBloc['tpl_path']; 
Note: See TracChangeset for help on using the changeset viewer.