From f6cde54fb63c037804d2700e442f218c46f078b7 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 8 May 2008 07:03:44 +0000 Subject: [PATCH] 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 --- gosa-core/plugins/personal/generic/class_user.inc | 2 +- .../goto/admin/applications/class_applicationGeneric.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.30.2