From: hickert Date: Thu, 8 May 2008 07:03:44 +0000 (+0000) Subject: Replaced hard coded temporary directory with constant 'CACHE_DIR' X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f6cde54fb63c037804d2700e442f218c46f078b7;p=gosa.git Replaced hard coded temporary directory with constant 'CACHE_DIR' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10841 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index e119d0088..06325b11e 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -932,7 +932,7 @@ class user extends plugin /* Fallback if there's no image magick inside PHP */ if (!function_exists("imagick_blob2image")){ /* Get temporary file name for conversation */ - $fname = tempnam ("/var/spool/gosa/", "GOsa"); + $fname = tempnam (CACHE_DIR, "GOsa"); /* Open file and write out photoData */ $fp = fopen ($fname, "w"); diff --git a/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc b/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc index f5b873353..7ade073bd 100644 --- a/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc +++ b/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc @@ -327,7 +327,7 @@ class application extends plugin if (!function_exists("imagick_blob2image")){ /* Get temporary file name for conversation */ - $fname = tempnam ("/var/spool/gosa/", "GOsa"); + $fname = tempnam (CACHE_DIR, "GOsa"); /* Open file and write out photoData */ $fp = fopen ($fname, "w");