Pārlūkot izejas kodu

Fix the temp directory path.

Mark Crane 13 gadi atpakaļ
vecāks
revīzija
c1437159e4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      includes/lib_switch.php

+ 1 - 1
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 .= "?>";