Thread:Talk:MediaWiki 1.19/Thumbnails didn't work since Update to 1.19/reply (7)

Hi, I don't have access to Bugzilla, so here is my Patch, the whole function wfTempDir looks like that on my Mediawiki: function wfTempDir { foreach( array( 'TMPDIR', 'TMP', 'TEMP' ) as $var ) { $tmp = getenv( $var ); if( $tmp && file_exists( $tmp ) && is_dir( $tmp ) && is_writable( $tmp ) ) { return $tmp; }       }        if (ini_get('upload_tmp_dir')!==false) { $tmp = ini_get('upload_tmp_dir'); if( $tmp && file_exists( $tmp ) && is_dir( $tmp ) && is_writable( $tmp ) ) { return $tmp; }       }        if( function_exists( 'sys_get_temp_dir' ) ) { $tmp = sys_get_temp_dir; if( $tmp && file_exists( $tmp ) && is_dir( $tmp ) && is_writable( $tmp ) ) { return $tmp; }       }        # Usual defaults return wfIsWindows ? 'C:\Windows\Temp' : '/tmp'; }