@copy($this->filepath, $outpath);
// And set chmod
- @chmod($outpath, common_config('attachments', '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('attachments', 'chmod');
+ @chmod($outpath, common_config('attachments', 'chmod'));
imagedestroy($image_src);
imagedestroy($image_dest);