Changeset 19777 for branches/version-2_5-dev/data/class
- Timestamp:
- 2010/12/28 18:33:47 (16 years ago)
- Location:
- branches/version-2_5-dev/data/class
- Files:
-
- 2 edited
-
helper/SC_Helper_PageLayout.php (modified) (1 diff)
-
pages/admin/design/LC_Page_Admin_Design_MainEdit.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_PageLayout.php
r19768 r19777 64 64 $arrPageLayout = $arrPageData[0]; 65 65 66 $objPage->tpl_mainpage = $this->getTemplatePath($device_type_id) . $arrPageLayout[' filename'] . ".tpl";66 $objPage->tpl_mainpage = $this->getTemplatePath($device_type_id) . $arrPageLayout['tpl_dir'] . $arrPageLayout['filename'] . ".tpl"; 67 67 68 68 // ページタイトルを設定 -
branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php
r19774 r19777 242 242 243 243 // TPLファイル作成 244 $cre_tpl = $this->objLayout->getTemplatePath($device_type_id) . $arrData[' filename'] . '.tpl';244 $cre_tpl = $this->objLayout->getTemplatePath($device_type_id) . $arrData['tpl_dir'] . $arrData['filename'] . '.tpl'; 245 245 $this->lfCreateFile($cre_tpl, $_POST['tpl_data']); 246 246 … … 320 320 $arrUpdData['php_dir'] .= '/'; 321 321 } 322 $arrUpdData['tpl_dir'] = substr($this->objLayout->getTemplatePath($devie_type_id), strlen(URL_DIR));323 $arrUpdData['filename'] = dirname($arrUpdData['url']) . basename($arrUpdData['url']); // 拡張子を付加しない322 $arrUpdData['tpl_dir'] = $arrUpdData['php_dir']; 323 $arrUpdData['filename'] = basename($arrData['url']); // 拡張子を付加しない 324 324 } 325 325 … … 441 441 442 442 // require.phpの場所を書き換える 443 $php_data = str_replace("###require###", str_repeat('../', substr_count($url, '/')) . '../require.php', $php_data); 443 $defaultStrings = "exit; // Don't rewrite. This line is rewritten by EC-CUBE."; 444 $replaceStrings = "require_once '" . str_repeat('../', substr_count($url, '/')) . "../require.php';"; 445 $php_data = str_replace($defaultStrings, $replaceStrings, $php_data); 444 446 445 447 // phpファイルの作成
Note: See TracChangeset
for help on using the changeset viewer.
