From ccf0532bef6abcae08c706692ed3c06242d438f7 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 3 Nov 2011 14:44:49 +0100 Subject: [PATCH] Fixed default path suggestion for applications --- .../lib/system/package/PackageInstallationDispatcher.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 1f685fdc23..264c0c475d 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -432,7 +432,8 @@ class PackageInstallationDispatcher { $packageDir->setName('packageDir'); $packageDir->setLabel(WCF::getLanguage()->get('wcf.acp.package.packageDir.input')); - $defaultPath = FileUtil::addTrailingSlash(FileUtil::unifyDirSeperator($_SERVER['DOCUMENT_ROOT'])); + $path = RouteHandler::getPath(array('wcf', 'acp')); + $defaultPath = FileUtil::addTrailingSlash(FileUtil::unifyDirSeperator($_SERVER['DOCUMENT_ROOT'] . $path)); $packageDir->setValue($defaultPath); $container->appendChild($packageDir); -- 2.20.1