Commit 2eca33ac authored by Yuliya Bozhko's avatar Yuliya Bozhko
Browse files

Fix file permissions for generated layouts (Bug #1391686)



Change-Id: Ie8be286a6bc25c3b47fd939b1c6183c32af41de5
Signed-off-by: default avatarYuliya Bozhko <yuliya.bozhko@totaralms.com>
parent 5c9a6ccb
......@@ -123,7 +123,7 @@ class LayoutPreviewImage {
}
if ($madenewimage = imagepng($im, $destination . '/' . $filename) ) {
chmod($destination . '/' . $filename, 0700);
chmod($destination . '/' . $filename, get_config('filepermissions'));
imagedestroy($im);
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment