Changeset 20629
- Timestamp:
- 2011/03/14 13:16:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/design/LC_Page_Admin_Design_Bloc.php
r20618 r20629 135 135 // ディレクトリの作成 136 136 SC_Utils_Ex::sfMakeDir($new_bloc_path); 137 $ res = file_put_contents($new_bloc_path, $_POST['bloc_html']);138 if ( $res === false) {137 $fp = fopen($new_bloc_path,"w"); 138 if (!$fp) { 139 139 SC_Utils_Ex::sfDispException(); 140 140 } 141 fwrite($fp, $_POST['bloc_html']); // FIXME いきなり POST はちょっと... 142 fclose($fp); 141 143 142 144 $arrBlocData = $this->lfGetBlocData("filename = ? AND device_type_id = ?",
Note: See TracChangeset
for help on using the changeset viewer.