summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2018-03-10 01:08:32 +0100
committerAndrey Andreev <narf@devilix.net>2018-03-10 01:10:10 +0100
commit0768a406d49f9a7b3ffa32749beaffc55a153902 (patch)
treec0d23e71587701e15b414a338ceb4fd0298a3c26 /system/libraries
parent8ff2b1055e902ef4c66bbb6e3b1a4554872e6659 (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')
-rw-r--r--system/libraries/Image_lib.php5
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;
}