"using the configured temp directory for uploaded files"

This commit is contained in:
Ralf Becker 2008-04-24 13:59:47 +00:00
parent f40cfd935d
commit 4048c304d7

View File

@ -521,9 +521,9 @@ class link_widget
{
if (!$value['to_id'] || is_array($value['to_id'])) // otherwise the webserver deletes the file
{
if (is_dir($GLOBALS['egw_info']['server']['tmp_dir']) && is_writable($GLOBALS['egw_info']['server']['tmp_dir']))
if (is_dir($GLOBALS['egw_info']['server']['temp_dir']) && is_writable($GLOBALS['egw_info']['server']['temp_dir']))
{
$new_file = tempnam($GLOBALS['egw_info']['server']['tmp_dir'],'egw_');
$new_file = tempnam($GLOBALS['egw_info']['server']['temp_dir'],'egw_');
}
else
{