Improve application directory suggestion
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 27 Mar 2014 17:41:55 +0000 (18:41 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 27 Mar 2014 17:41:55 +0000 (18:41 +0100)
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php

index 826dc8ecc54641463156c489a03ef13386d56028..ddf6ab0ef697be3b965502336a1a3dc6ab9f8b15 100644 (file)
@@ -668,7 +668,7 @@ class PackageInstallationDispatcher {
                        $packageDir->setName('packageDir');
                        $packageDir->setLabel(WCF::getLanguage()->get('wcf.acp.package.packageDir.input'));
                        
-                       $defaultPath = FileUtil::addTrailingSlash(FileUtil::unifyDirSeparator(mb_substr(WCF_DIR, 0, -4)));
+                       $defaultPath = FileUtil::addTrailingSlash(FileUtil::unifyDirSeparator(dirname(WCF_DIR)));
                        // check if there is already an application
                        $sql = "SELECT  COUNT(*) AS count
                                FROM    wcf".WCF_N."_package