From 28d5e270891fe34f6e1fd1942a3d80633d46702c Mon Sep 17 00:00:00 2001 From: Otto Vainio Date: Tue, 25 Mar 2008 19:18:25 +0100 Subject: Set cache permissions after image resize FS#1359 darcs-hash:20080325181825-8d1e6-9f3156da7769530634f29859226d0cb0652fbb99.gz --- lib/exe/fetch.php | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/exe/fetch.php') diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php index ccab73fa9..d59f2edee 100644 --- a/lib/exe/fetch.php +++ b/lib/exe/fetch.php @@ -208,6 +208,7 @@ function get_resized($file, $ext, $w, $h=0){ if( $mtime > filemtime($file) || resize_imageIM($ext,$file,$info[0],$info[1],$local,$w,$h) || resize_imageGD($ext,$file,$info[0],$info[1],$local,$w,$h) ){ + if($conf['fperm']) chmod($local, $conf['fperm']); return $local; } //still here? resizing failed -- cgit v1.2.3