diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-05-05 22:07:09 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-05-05 22:07:09 +0200 |
commit | 3be20e26b7d3c0f60bc60b314a85138100edab52 (patch) | |
tree | bd134700b39e5331a190d47684ddf29c11cd951e /system/helpers/file_helper.php | |
parent | 14031d152b76e7744d6f8a70964ecae77ca55179 (diff) |
tweak to the new fopen mode constant names
Diffstat (limited to 'system/helpers/file_helper.php')
-rw-r--r-- | system/helpers/file_helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/file_helper.php b/system/helpers/file_helper.php index 2bcb98b4d..147a7fdf1 100644 --- a/system/helpers/file_helper.php +++ b/system/helpers/file_helper.php @@ -50,7 +50,7 @@ if (! function_exists('read_file')) return file_get_contents($file);
}
- if (! $fp = @fopen($file, FOPEN_READ_BOF))
+ if (! $fp = @fopen($file, FOPEN_READ))
{
return FALSE;
}
@@ -85,7 +85,7 @@ if (! function_exists('read_file')) */
if (! function_exists('write_file'))
{
- function write_file($path, $data, $mode = FOPEN_WRITE_CREATE_BOF)
+ function write_file($path, $data, $mode = FOPEN_WRITE_CREATE_DESTRUCTIVE)
{
if (! $fp = @fopen($path, $mode))
{
|