Changeset 19777 for branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_MainEdit.php
- Timestamp:
- 2010/12/28 18:33:47 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.