From: Matthias Schmidt Date: Mon, 15 Apr 2013 15:16:33 +0000 (+0200) Subject: Removes obsolete code X-Git-Tag: 2.0.0_Beta_1~350 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=193906af757f68e89eefeba5ff7c717abc400da1;p=GitHub%2FWoltLab%2FWCF.git Removes obsolete code This is now handled by `PackageInstallationDispatcher::installPackage()`. --- diff --git a/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php index 7826afd471..45f7922776 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/FilePackageInstallationPlugin.class.php @@ -1,7 +1,6 @@ installation->getPackage()->packageDir; - if (empty($dir)) { - if ($this->installation->getPackage()->isApplication == 1 && $this->installation->getPackage()->package != 'com.woltlab.wcf' && $this->installation->getAction() == 'install') { - // application - // prompt package dir - $dir = $this->promptPackageDir(); - } - - // save package dir - if (!empty($dir)) { - $package = new Package($this->installation->getPackageID()); - $packageEditor = new PackageEditor($package); - $packageEditor->update(array('packageDir' => $dir)); - - $this->installation->getPackage()->packageDir = $dir; - } - } - // absolute path to package dir - $packageDir = FileUtil::addTrailingSlash(FileUtil::getRealPath(WCF_DIR.$dir)); + $packageDir = FileUtil::addTrailingSlash(FileUtil::getRealPath(WCF_DIR.$this->installation->getPackage()->packageDir)); // extract files.tar to temp folder $sourceFile = $this->installation->getArchive()->extractTar($this->instruction['value'], 'files_');