Commit 81bfc0bc authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review

Merge "Fix file permissions for generated layouts (Bug #1391686)"

parents e4d1c89a 2eca33ac
......@@ -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