Fixed domain path calculation
authorAlexander Ebert <ebert@woltlab.com>
Sat, 1 Jun 2013 18:25:48 +0000 (20:25 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 1 Jun 2013 18:25:48 +0000 (20:25 +0200)
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php

index 4f43a6470cd06e23e9252fcc484306d450d28a0c..41d8a4093967d2eb527cb7060c1255d4cb5381d5 100644 (file)
@@ -651,7 +651,7 @@ 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(), '', FileUtil::unifyDirSeperator(WCF_DIR));
+                               $pathToDocumentRoot = str_replace(RouteHandler::getPath(array('acp')), '', FileUtil::unifyDirSeperator(WCF_DIR));
                                $domainPath = str_replace($pathToDocumentRoot, '', $packageDir);
                                
                                // update application path