From: RouL Date: Thu, 14 Jul 2011 17:16:56 +0000 (+0200) Subject: Fixed the temp-folder detection in the install.php X-Git-Tag: 2.0.0_Beta_1~2033^2~3^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f49cc894f59a910396030d19e7611b1ae2086792;p=GitHub%2FWoltLab%2FWCF.git Fixed the temp-folder detection in the install.php --- 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);