Fix DevtoolsPackageInstallationDispatcher when sycing data
authorMatthias Schmidt <gravatronics@live.com>
Sat, 24 Nov 2018 08:26:13 +0000 (09:26 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 24 Nov 2018 08:26:13 +0000 (09:26 +0100)
See #2616

wcfsetup/install/files/lib/system/devtools/pip/DevtoolsPackageInstallationDispatcher.class.php

index 5ad14f732d803b456b362eb7a9fab034610e9c9b..515808ff60b970a1d8e637fb57068f2d279220e2 100644 (file)
@@ -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