diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-05 18:39:18 +0200 |
commit | 7327499064ae165468c7440f8571c3e570b58a0b (patch) | |
tree | 4f0d0053e7d25f7064c63070edcbc3af114abed9 /system/database/DB_cache.php | |
parent | 7539f67a23c8536f892263d8d7ab9448655d8e22 (diff) |
Added get_dir_file_info(), get_file_info(), and get_mime_by_extension() to the File Helper.
Changed ( ! condition) into (! condition) within the code
Diffstat (limited to 'system/database/DB_cache.php')
-rw-r--r-- | system/database/DB_cache.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/system/database/DB_cache.php b/system/database/DB_cache.php index 08394da29..982725aaa 100644 --- a/system/database/DB_cache.php +++ b/system/database/DB_cache.php @@ -64,7 +64,7 @@ class CI_DB_Cache { // Add a trailing slash to the path if needed
$path = preg_replace("/(.+?)\/*$/", "\\1/", $path);
- if ( ! is_dir($path) OR ! is_really_writable($path))
+ if (! is_dir($path) OR ! is_really_writable($path))
{
// If the path is wrong we'll turn off caching
return $this->CI->db->cache_off();
@@ -87,7 +87,7 @@ class CI_DB_Cache { */
function read($sql)
{
- if ( ! $this->check_path())
+ if (! $this->check_path())
{
return $this->CI->db->cache_off();
}
@@ -115,7 +115,7 @@ class CI_DB_Cache { */
function write($sql, $object)
{
- if ( ! $this->check_path())
+ if (! $this->check_path())
{
return $this->CI->db->cache_off();
}
@@ -127,9 +127,9 @@ class CI_DB_Cache { $filename = md5($sql);
- if ( ! @is_dir($dir_path))
+ if (! @is_dir($dir_path))
{
- if ( ! @mkdir($dir_path, DIR_WRITE_MODE))
+ if (! @mkdir($dir_path, DIR_WRITE_MODE))
{
return FALSE;
}
|