diff options
author | Otto Vainio <otto@valjakko.net> | 2008-03-25 19:18:25 +0100 |
---|---|---|
committer | Otto Vainio <otto@valjakko.net> | 2008-03-25 19:18:25 +0100 |
commit | 28d5e270891fe34f6e1fd1942a3d80633d46702c (patch) | |
tree | 1f1b48fe6ea77443cfb93b4082eb9402cd724bfe /lib/exe/fetch.php | |
parent | 1bda861809be1b5cd5475f5fc0898865eed4a054 (diff) | |
download | rpg-28d5e270891fe34f6e1fd1942a3d80633d46702c.tar.gz rpg-28d5e270891fe34f6e1fd1942a3d80633d46702c.tar.bz2 |
Set cache permissions after image resize FS#1359
darcs-hash:20080325181825-8d1e6-9f3156da7769530634f29859226d0cb0652fbb99.gz
Diffstat (limited to 'lib/exe/fetch.php')
-rw-r--r-- | lib/exe/fetch.php | 1 |
1 files changed, 1 insertions, 0 deletions
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 |