Changeset 20629


Ignore:
Timestamp:
2011/03/14 13:16:41 (13 years ago)
Author:
kotani
Message:

#854(PHP4対応)

  • file_put_contents() へリファクタされた部分を元に戻した。(r19795 の部分差し戻し)
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  
    135135                // ディレクトリの作成 
    136136                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) { 
    139139                    SC_Utils_Ex::sfDispException(); 
    140140                } 
     141                fwrite($fp, $_POST['bloc_html']); // FIXME いきなり POST はちょっと... 
     142                fclose($fp); 
    141143 
    142144                $arrBlocData = $this->lfGetBlocData("filename = ? AND device_type_id = ?", 
Note: See TracChangeset for help on using the changeset viewer.