From: Matthias Schmidt Date: Sat, 24 Nov 2018 08:26:13 +0000 (+0100) Subject: Fix DevtoolsPackageInstallationDispatcher when sycing data X-Git-Tag: 5.2.0_Alpha_1~511 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a5691c9f4d38e5f04619b16f2ba6342f2826523;p=GitHub%2FWoltLab%2FWCF.git Fix DevtoolsPackageInstallationDispatcher when sycing data See #2616 --- diff --git a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationDispatcher.class.php index 5ad14f732d..515808ff60 100644 --- a/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationDispatcher.class.php @@ -26,6 +26,10 @@ class DevtoolsPackageInstallationDispatcher extends PackageInstallationDispatche */ public function __construct(DevtoolsProject $project, PackageInstallationQueue $queue = null) { $this->queue = $queue; + if ($this->queue === null) { + $this->queue = new DevtoolsPackageInstallationQueue($project); + } + $this->nodeBuilder = new class($this) extends PackageInstallationNodeBuilder { protected function buildOptionalNodes() { // does nothing; optional packages are not supported