diff options
Diffstat (limited to 'includes/image.inc')
-rw-r--r-- | includes/image.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/includes/image.inc b/includes/image.inc index df31990ac..e425d1251 100644 --- a/includes/image.inc +++ b/includes/image.inc @@ -376,10 +376,9 @@ function image_save(stdClass $image, $destination = NULL) { clearstatcache(); $image->info = image_get_info($destination); - if (@chmod($destination, 0664)) { + if (drupal_chmod($destination)) { return $return; } - watchdog('image', 'Could not set permissions on destination file: %file', array('%file' => $destination)); } return FALSE; } |