summaryrefslogtreecommitdiffstats
path: root/system/helpers/file_helper.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-02 19:34:52 +0200
committeradmin <devnull@localhost>2006-09-02 19:34:52 +0200
commit2ed76d5ac89ec7869dcb64c050360fb2f99e9326 (patch)
treed9a8a11e7b94bb51088aaa06e128f99a1c5adc60 /system/helpers/file_helper.php
parent51cf423e1e41f573f87176d28affa50efda46c45 (diff)
Diffstat (limited to 'system/helpers/file_helper.php')
-rw-r--r--system/helpers/file_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php
index 93bddb029..32c0b2cdc 100644
--- a/system/helpers/file_helper.php
+++ b/system/helpers/file_helper.php
@@ -75,9 +75,9 @@ function read_file($file)
* @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;
}