Fixed a bug that recognized the installation files in a nested
tmp-directory as an already installed WCF instance at the "choose
folder" page.
else {\r
if ($foundDirectory = FileUtil::scanFolder(INSTALL_SCRIPT_DIR, "WCF.class.php", true)) {\r
$foundDirectory = $wcfDir = FileUtil::unifyDirSeperator(dirname(dirname(dirname($foundDirectory))).'/');\r
+ \r
+ if (dirname(dirname($wcfDir)).'/' == TMP_DIR) {\r
+ $foundDirectory = false;\r
+ $wcfDir = FileUtil::unifyDirSeperator(INSTALL_SCRIPT_DIR).'wcf/';\r
+ }\r
}\r
else {\r
$wcfDir = FileUtil::unifyDirSeperator(INSTALL_SCRIPT_DIR).'wcf/';\r