diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-02-15 15:52:07 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-02-15 15:52:07 +0100 |
commit | 900984773e07ba34cbb6f6f7ed394210213153ec (patch) | |
tree | c59528ea0f20ad08b49ce1f0efbc9b2e528fb4ae /inc/media.php | |
parent | 04032c735ec3e60ef6a82418ad3b35560e41c194 (diff) | |
download | rpg-900984773e07ba34cbb6f6f7ed394210213153ec.tar.gz rpg-900984773e07ba34cbb6f6f7ed394210213153ec.tar.bz2 |
try to ignore chmod errors FS#2895
Diffstat (limited to 'inc/media.php')
-rw-r--r-- | inc/media.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/media.php b/inc/media.php index 93662ec17..56fa5d54b 100644 --- a/inc/media.php +++ b/inc/media.php @@ -1819,7 +1819,7 @@ function media_resize_image($file, $ext, $w, $h=0){ if( $mtime > filemtime($file) || media_resize_imageIM($ext,$file,$info[0],$info[1],$local,$w,$h) || media_resize_imageGD($ext,$file,$info[0],$info[1],$local,$w,$h) ){ - if($conf['fperm']) chmod($local, $conf['fperm']); + if($conf['fperm']) @chmod($local, $conf['fperm']); return $local; } //still here? resizing failed @@ -1880,7 +1880,7 @@ function media_crop_image($file, $ext, $w, $h=0){ if( $mtime > @filemtime($file) || media_crop_imageIM($ext,$file,$info[0],$info[1],$local,$cw,$ch,$cx,$cy) || media_resize_imageGD($ext,$file,$cw,$ch,$local,$cw,$ch,$cx,$cy) ){ - if($conf['fperm']) chmod($local, $conf['fperm']); + if($conf['fperm']) @chmod($local, $conf['fperm']); return media_resize_image($local,$ext, $w, $h); } |