Fixed guessing of application path
authorAlexander Ebert <ebert@woltlab.com>
Mon, 1 Jul 2013 11:38:17 +0000 (13:38 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 1 Jul 2013 11:38:17 +0000 (13:38 +0200)
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php

index 41d8a4093967d2eb527cb7060c1255d4cb5381d5..2062908f6d64b5e8a3ce649c0894f8bd5c539747 100644 (file)
@@ -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);