diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-04-04 20:56:04 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-04-04 20:56:04 +0200 |
commit | 3ad8efe07deb3ec27a205815dc9097c20c728e9b (patch) | |
tree | d2d699b7173505ef6ce317cd0856fa5b03e6aae1 /system/database/DB_cache.php | |
parent | 1ea127ae8a8026af7679526af06ff297d5104104 (diff) |
added constants.php file and implemented constants for file system modes
Diffstat (limited to 'system/database/DB_cache.php')
-rw-r--r-- | system/database/DB_cache.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/database/DB_cache.php b/system/database/DB_cache.php index ad54fc315..08394da29 100644 --- a/system/database/DB_cache.php +++ b/system/database/DB_cache.php @@ -129,12 +129,12 @@ class CI_DB_Cache { if ( ! @is_dir($dir_path))
{
- if ( ! @mkdir($dir_path, 0777))
+ if ( ! @mkdir($dir_path, DIR_WRITE_MODE))
{
return FALSE;
}
- @chmod($dir_path, 0777);
+ @chmod($dir_path, DIR_WRITE_MODE);
}
if (write_file($dir_path.$filename, serialize($object)) === FALSE)
@@ -142,7 +142,7 @@ class CI_DB_Cache { return FALSE;
}
- @chmod($dir_path.$filename, 0777);
+ @chmod($dir_path.$filename, DIR_WRITE_MODE);
return TRUE;
}
|