summaryrefslogtreecommitdiffstats
path: root/system/core/Log.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-03-13 13:55:45 +0100
committerAndrey Andreev <narf@devilix.net>2014-03-13 13:55:45 +0100
commit7cf682abf46bcaa112b63c500a884ba25c0dd8b3 (patch)
treeec4283976055d986add2da7b0dad16c1e75dcba5 /system/core/Log.php
parentd2e3a6fbf820b819bd7b2abc4794766f4c1d4e1a (diff)
Partially revert PR #2190
The core shouldn't depend on constants that are not defined by itself
Diffstat (limited to 'system/core/Log.php')
-rw-r--r--system/core/Log.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/core/Log.php b/system/core/Log.php
index 707964ccc..a949c3f39 100644
--- a/system/core/Log.php
+++ b/system/core/Log.php
@@ -108,7 +108,7 @@ class CI_Log {
$this->_file_ext = (isset($config['log_file_extension']) && $config['log_file_extension'] !== '')
? ltrim($config['log_file_extension'], '.') : 'php';
- file_exists($this->_log_path) OR mkdir($this->_log_path, DIR_WRITE_MODE, TRUE);
+ file_exists($this->_log_path) OR mkdir($this->_log_path, 0777, TRUE);
if ( ! is_dir($this->_log_path) OR ! is_really_writable($this->_log_path))
{
@@ -170,7 +170,7 @@ class CI_Log {
}
}
- if ( ! $fp = @fopen($filepath, FOPEN_WRITE_CREATE))
+ if ( ! $fp = @fopen($filepath, 'ab'))
{
return FALSE;
}
@@ -192,7 +192,7 @@ class CI_Log {
if (isset($newfile) && $newfile === TRUE)
{
- @chmod($filepath, FILE_WRITE_MODE);
+ @chmod($filepath, 0666);
}
return is_int($result);