From 8725cf9a800bb45c80d8882ce60ebd530e673e12 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sun, 24 Jun 2012 06:20:25 +0000 Subject: [PATCH] Fix the temp directory path. --- includes/lib_switch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/lib_switch.php b/includes/lib_switch.php index a6631153e4..7b2e49c1c0 100644 --- a/includes/lib_switch.php +++ b/includes/lib_switch.php @@ -1555,7 +1555,7 @@ function save_setting_xml() { $xml .= "\n"; $xml .= "//set system dir variables\n"; $xml .= " \$switch_storage_dir = \"".$_SESSION['switch']['storage']['dir']."\";\n"; - $xml .= " \$tmp_dir = \"".$tmp_dir."\";\n"; + $xml .= " \$tmp_dir = \"".$_SESSION['server']['temp']['dir']."\";\n"; $xml .= " \$v_secure = \"".$_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/secure"."\";\n"; $xml .= "\n"; $xml .= "?>";