diff options
author | Andrey Andreev <narf@devilix.net> | 2018-03-10 01:08:32 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2018-03-10 01:10:10 +0100 |
commit | 0768a406d49f9a7b3ffa32749beaffc55a153902 (patch) | |
tree | c0d23e71587701e15b414a338ceb4fd0298a3c26 /system/libraries/Image_lib.php | |
parent | 8ff2b1055e902ef4c66bbb6e3b1a4554872e6659 (diff) |
[ci skip] Merge pull request #5434 from xims/patch-3
Update Image_lib to avoid setting file permissions when not needed
Diffstat (limited to 'system/libraries/Image_lib.php')
-rw-r--r-- | system/libraries/Image_lib.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/system/libraries/Image_lib.php b/system/libraries/Image_lib.php index b9adcd6e5..a5cb6fb47 100644 --- a/system/libraries/Image_lib.php +++ b/system/libraries/Image_lib.php @@ -835,7 +835,10 @@ class CI_Image_lib { imagedestroy($dst_img); imagedestroy($src_img); - chmod($this->full_dst_path, $this->file_permissions); + if ($this->dynamic_output !== TRUE) + { + chmod($this->full_dst_path, $this->file_permissions); + } return TRUE; } |