TMP_DIR already includes the TMP_FILE_PREFIX during the installation, so
it is not necessary to add it to the TMP_DIR. There was also an
exception thrown caused by this and the files in the temp-filder
weren't deleted.
WCF::getTPL()->display('stepInstallPackages');\r
\r
// delete tmp files\r
- $directory = TMP_DIR.TMP_FILE_PREFIX.'/';\r
- $it = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory));\r
+ $it = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator(TMP_DIR));\r
while ($it->valid()) {\r
// delete all files except directories and packages (required for post-wcfsetup installation)\r
if (!$it->isDot() && !$it->isDir() && !preg_match('~\.tar(\.gz)?$~', $it->getSubPathName())) {\r