From: Alexander Ebert Date: Mon, 1 Jul 2013 11:38:17 +0000 (+0200) Subject: Fixed guessing of application path X-Git-Tag: 2.0.0_Beta_5~113^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=76fb30f2bff35d5482b9500eda9b65cb7fd5aba2;p=GitHub%2FWoltLab%2FWCF.git Fixed guessing of application path --- 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);