From 8b998c9fc6a051526c785f583c9a7ffe24f047a1 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 8 May 2008 07:05:38 +0000 Subject: [PATCH] Updated temp_dir git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10842 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 2 +- gosa-core/plugins/personal/generic/class_user.inc | 2 +- .../goto/admin/applications/class_applicationGeneric.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 0b7b0cedb..05877a036 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -24,7 +24,7 @@ define ("CONFIG_DIR", "/etc/gosa"); define ("CONFIG_FILE", "gosa.conf"); define ("CONFIG_TEMPLATE_DIR", "../contrib/"); -define ("CACHE_DIR","/var/cache/gosa/tmp"); +define ("TEMP_DIR","/var/cache/gosa/tmp"); /* Define get_list flags */ define("GL_NONE", 0); diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 06325b11e..8d4f816f3 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 (CACHE_DIR, "GOsa"); + $fname = tempnam (TEMP_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 7ade073bd..97da83a3c 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 (CACHE_DIR, "GOsa"); + $fname = tempnam (TEMP_DIR, "GOsa"); /* Open file and write out photoData */ $fp = fopen ($fname, "w"); -- 2.30.2