From 76fb30f2bff35d5482b9500eda9b65cb7fd5aba2 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 1 Jul 2013 13:38:17 +0200 Subject: [PATCH] Fixed guessing of application path --- .../system/package/PackageInstallationDispatcher.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 41d8a40939..2062908f6d 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -650,9 +650,8 @@ class PackageInstallationDispatcher { // determine domain path, in some environments (e.g. ISPConfig) the $_SERVER paths are // faked and differ from the real filesystem path - $currentPath = RouteHandler::getPath(); - $pathToDocumentRoot = str_replace(RouteHandler::getPath(array('acp')), '', FileUtil::unifyDirSeperator(WCF_DIR)); - $domainPath = str_replace($pathToDocumentRoot, '', $packageDir); + $documentRoot = str_replace(ApplicationHandler::getInstance()->getWCF()->domainPath, '', FileUtil::unifyDirSeperator(WCF_DIR)); + $domainPath = str_replace($documentRoot, '', $packageDir); // update application path $application = new Application($this->getPackage()->packageID); -- 2.20.1