array('server' => null,
'dir' => INSTALLDIR . '/file/',
'path' => $_path . '/file/',
+ 'chmod' => 0644, // Access rights (chmod) for any attachments
'sslserver' => null,
'sslpath' => null,
'ssl' => null,
),
'thumbnail' =>
array('crop' => false, // overridden to true if thumb height === null
- 'chmod' => 0644, // Access rights (chmod) for created thumbnail images
'maxsize' => 1000, // thumbs with an edge larger than this will not be generated
'width' => 450,
'height' => 600,
@copy($this->filepath, $outpath);
// And set chmod
- @chmod($outpath, common_config('thumbnail', 'chmod');
+ @chmod($outpath, common_config('attachments', 'chmod');
return $outpath;
} elseif (abs($this->rotate) == 90) {
// Box is rotated 90 degrees in either direction,
}
// Always chmod 0644 (default) to have other processes (e.g. queue daemon read it)
- @chmod($outpath, common_config('thumbnail', 'chmod');
+ @chmod($outpath, common_config('attachments', 'chmod');
imagedestroy($image_src);
imagedestroy($image_dest);