Index: includes/GlobalFunctions.php =================================================================== RCS file: /cvsroot/wikipedia/phase3/includes/GlobalFunctions.php,v retrieving revision 1.185 diff -u -r1.185 GlobalFunctions.php --- includes/GlobalFunctions.php 19 Jun 2005 03:05:50 -0000 1.185 +++ includes/GlobalFunctions.php 22 Jun 2005 16:29:45 -0000 @@ -1221,7 +1221,7 @@ */ function wfTempDir() { foreach( array( 'TMPDIR', 'TMP', 'TEMP' ) as $var ) { - $tmp = getenv( 'TMPDIR' ); + $tmp = getenv( $var ); if( $tmp && file_exists( $tmp ) && is_dir( $tmp ) && is_writable( $tmp ) ) { return $tmp; }