From 3be20e26b7d3c0f60bc60b314a85138100edab52 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Mon, 5 May 2008 20:07:09 +0000 Subject: tweak to the new fopen mode constant names --- system/codeigniter/Common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/codeigniter') diff --git a/system/codeigniter/Common.php b/system/codeigniter/Common.php index b6a4ce4c5..c5c548cdf 100644 --- a/system/codeigniter/Common.php +++ b/system/codeigniter/Common.php @@ -46,7 +46,7 @@ function is_really_writable($file) { $file = rtrim($file, '/').'/'.md5(rand(1,100)); - if (($fp = @fopen($file, FOPEN_WRITE_CREATE_EOF)) === FALSE) + if (($fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE) { return FALSE; } @@ -56,7 +56,7 @@ function is_really_writable($file) @unlink($file); return TRUE; } - elseif (($fp = @fopen($file, FOPEN_WRITE_CREATE_EOF)) === FALSE) + elseif (($fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE) { return FALSE; } -- cgit v1.2.3-24-g4f1b