Sfoglia il codice sorgente

Fix the temp directory path.

Mark Crane 13 anni fa
parent
commit
c1437159e4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 .= "?>";