From 193906af757f68e89eefeba5ff7c717abc400da1 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 15 Apr 2013 17:16:33 +0200 Subject: [PATCH] Removes obsolete code This is now handled by `PackageInstallationDispatcher::installPackage()`. --- .../FilePackageInstallationPlugin.class.php | 22 +------------------ 1 file changed, 1 insertion(+), 21 deletions(-) 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_'); -- 2.20.1