diff options
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Image_lib.php | 12 | ||||
-rw-r--r-- | system/libraries/Output.php | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index 169c6e489..59aefc55c 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -459,7 +459,7 @@ class CI_Image_lib { { if (@copy($this->full_src_path, $this->full_dst_path)) { - @chmod($this->full_dst_path, DIR_WRITE_MODE); + @chmod($this->full_dst_path, FILE_WRITE_MODE); } } @@ -534,7 +534,7 @@ class CI_Image_lib { imagedestroy($src_img); // Set the file to 777 - @chmod($this->full_dst_path, DIR_WRITE_MODE); + @chmod($this->full_dst_path, FILE_WRITE_MODE); return TRUE; } @@ -604,7 +604,7 @@ class CI_Image_lib { } // Set the file to 777 - @chmod($this->full_dst_path, DIR_WRITE_MODE); + @chmod($this->full_dst_path, FILE_WRITE_MODE); return TRUE; } @@ -690,7 +690,7 @@ class CI_Image_lib { // we have to rename the temp file. copy ($this->dest_folder.'netpbm.tmp', $this->full_dst_path); unlink ($this->dest_folder.'netpbm.tmp'); - @chmod($this->full_dst_path, DIR_WRITE_MODE); + @chmod($this->full_dst_path, FILE_WRITE_MODE); return TRUE; } @@ -749,7 +749,7 @@ class CI_Image_lib { // Set the file to 777 - @chmod($this->full_dst_path, DIR_WRITE_MODE); + @chmod($this->full_dst_path, FILE_WRITE_MODE); return true; } @@ -833,7 +833,7 @@ class CI_Image_lib { imagedestroy($src_img); // Set the file to 777 - @chmod($this->full_dst_path, DIR_WRITE_MODE); + @chmod($this->full_dst_path, FILE_WRITE_MODE); return TRUE; } diff --git a/system/libraries/Output.php b/system/libraries/Output.php index 4423ac726..0cf6739bd 100644 --- a/system/libraries/Output.php +++ b/system/libraries/Output.php @@ -331,7 +331,7 @@ class CI_Output { return; } fclose($fp); - @chmod($cache_path, DIR_WRITE_MODE); + @chmod($cache_path, FILE_WRITE_MODE); log_message('debug', "Cache file written: ".$cache_path); } |