Use ini_get('upload_tmp_dir') for zip plugin

This commit is contained in:
Colin Vidal 2013-11-17 15:16:46 +01:00 committed by Marc MAURICE
parent e21e212903
commit f71582d5eb

View file

@ -63,7 +63,7 @@ else {
if (is_dir("$bizouRootFromHere/".IMAGES_DIR."/".$folder)) {
$tmp = tempnam("/tmp", "bizou_"); // Getting a temporary file.
$tmp = tempnam(ini_get("upload_tmp_dir"), "bizou_"); // Getting a temporary file.
unlink($tmp); // Deleting the temporary file in order to recreate it as a zip archive.
// Creating zip archive.