From: Tim Düsterhus Date: Thu, 27 Mar 2014 17:41:55 +0000 (+0100) Subject: Improve application directory suggestion X-Git-Tag: 2.1.0_Alpha_1~947 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1c5deb46f21097f30d9abb76de333ac18f39213;p=GitHub%2FWoltLab%2FWCF.git Improve application directory suggestion --- diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 826dc8ecc5..ddf6ab0ef6 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -668,7 +668,7 @@ class PackageInstallationDispatcher { $packageDir->setName('packageDir'); $packageDir->setLabel(WCF::getLanguage()->get('wcf.acp.package.packageDir.input')); - $defaultPath = FileUtil::addTrailingSlash(FileUtil::unifyDirSeparator(mb_substr(WCF_DIR, 0, -4))); + $defaultPath = FileUtil::addTrailingSlash(FileUtil::unifyDirSeparator(dirname(WCF_DIR))); // check if there is already an application $sql = "SELECT COUNT(*) AS count FROM wcf".WCF_N."_package