From f49cc894f59a910396030d19e7611b1ae2086792 Mon Sep 17 00:00:00 2001 From: RouL Date: Thu, 14 Jul 2011 19:16:56 +0200 Subject: [PATCH] Fixed the temp-folder detection in the install.php --- wcfsetup/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install.php b/wcfsetup/install.php index c4059d8dde..f47ddac9d6 100644 --- a/wcfsetup/install.php +++ b/wcfsetup/install.php @@ -248,11 +248,11 @@ class BasicFileUtil { } } - $dir = INSTALL_SCRIPT_DIR . 'tmp/' . $tmpDir; + $dir = INSTALL_SCRIPT_DIR . 'tmp/' . $tmpDirName; @mkdir($dir, 0777); @chmod($dir, 0777); - if (@file_exists($dir) && @is_writable($dir)) { + if (!@file_exists($dir) || !@is_writable($dir)) { $tmpDir = explode('/', $dir); array_pop($tmpDir); $dir = implode('/', $tmpDir); -- 2.20.1