added a commented line to change the umask of created files

This commit is contained in:
Marc MAURICE 2011-04-28 17:44:02 +02:00
parent 451e14b16e
commit dcc5699b07

View file

@ -69,6 +69,9 @@ function getPreview($imgFile, $maxSize = THUMB_SIZE)
return $imgFile; return $imgFile;
} }
# uncomment this if you need group writable files
#umask(0002);
# create the thumbs directory recursively # create the thumbs directory recursively
if (! is_dir(dirname($newImgFile))) mkdir(dirname($newImgFile), 0777, true); if (! is_dir(dirname($newImgFile))) mkdir(dirname($newImgFile), 0777, true);