commit | 2ed76d5ac89ec7869dcb64c050360fb2f99e9326 | [log] [tgz] |
---|---|---|
author | admin <devnull@localhost> | Sat Sep 02 17:34:52 2006 +0000 |
committer | admin <devnull@localhost> | Sat Sep 02 17:34:52 2006 +0000 |
tree | d9a8a11e7b94bb51088aaa06e128f99a1c5adc60 | |
parent | 51cf423e1e41f573f87176d28affa50efda46c45 [diff] [blame] |
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php index 93bddb0..32c0b2c 100644 --- a/system/helpers/file_helper.php +++ b/system/helpers/file_helper.php
@@ -75,9 +75,9 @@ * @param string file data * @return bool */ -function write_file($path, $data) +function write_file($path, $data, $mode = 'wb') { - if ( ! $fp = @fopen($path, 'wb')) + if ( ! $fp = @fopen($path, $mode)) { return FALSE; }