From: Alexander Ebert Date: Thu, 3 Nov 2011 13:44:49 +0000 (+0100) Subject: Fixed default path suggestion for applications X-Git-Tag: 2.0.0_Beta_1~1628^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ccf0532bef6abcae08c706692ed3c06242d438f7;p=GitHub%2FWoltLab%2FWCF.git Fixed default path suggestion for applications --- 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);