Fixed default path suggestion for applications
authorAlexander Ebert <ebert@woltlab.com>
Thu, 3 Nov 2011 13:44:49 +0000 (14:44 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 3 Nov 2011 13:44:49 +0000 (14:44 +0100)
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php

index 1f685fdc236ad77d77c9cab4353d1c3165b00e15..264c0c475de73b48d3a26773e4cdb563eed39ca5 100644 (file)
@@ -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);