From: Matthias Schmidt Date: Sat, 24 Nov 2018 08:36:56 +0000 (+0100) Subject: Fix importing application-specific PIP files X-Git-Tag: 5.2.0_Alpha_1~509 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d71233fc5c07167595ec05dce5ce3167f6b23e98;p=GitHub%2FWoltLab%2FWCF.git Fix importing application-specific PIP files See #2616 --- diff --git a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php index 1c762ecb50..26f92a9c89 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPip.class.php @@ -252,7 +252,9 @@ class DevtoolsPip extends DatabaseObjectDecorator { $tar = $project->getPackageArchive()->getTar(); $tar->reset(); - $instructions = []; + $instructions = [ + 'value' => $target + ]; if ($project->isCore()) { switch ($pluginName) { @@ -310,24 +312,18 @@ class DevtoolsPip extends DatabaseObjectDecorator { } } - $instructions['value'] = $defaultFilename; - break; case 'language': $filename = "wcfsetup/install/lang/{$target}"; $tar->registerFile($filename, $project->path . $filename); - $instructions['value'] = $filename; - break; default: $filename = "com.woltlab.wcf/{$target}"; $tar->registerFile($filename, $project->path . $filename); - $instructions['value'] = $filename; - break; } } @@ -389,8 +385,6 @@ class DevtoolsPip extends DatabaseObjectDecorator { } } - $instructions['value'] = $defaultFilename; - break; default: @@ -403,8 +397,6 @@ class DevtoolsPip extends DatabaseObjectDecorator { $tar->registerFile($filename, $project->path . $filename); } - $instructions['value'] = $filename; - break; } }