Fixed run="standlone" for PIPs
authorAlexander Ebert <ebert@woltlab.com>
Sat, 8 Jun 2013 21:36:59 +0000 (23:36 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 8 Jun 2013 21:36:59 +0000 (23:36 +0200)
wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php

index 420d541bb940633eb1cf1e3ff04b000ed635214f..1fdfc89c164507517288619cdea0d5a7f9e9be5d 100644 (file)
@@ -504,6 +504,7 @@ class PackageInstallationNodeBuilder {
                $instructions = ($this->installation->getAction() == 'install') ? $this->installation->getArchive()->getInstallInstructions() : $this->installation->getArchive()->getUpdateInstructions();
                foreach ($instructions as $pip) {
                        if (isset($pip['attributes']['run']) && ($pip['attributes']['run'] == 'standalone')) {
+                               // move into a new node
                                $this->parentNode = $this->node;
                                $this->node = $this->getToken();
                                $this->sequenceNo = 0;
@@ -514,6 +515,11 @@ class PackageInstallationNodeBuilder {
                                        'parentNode' => $this->parentNode,
                                        'sequenceNo' => $this->sequenceNo
                                );
+                               
+                               // create a new node for following PIPs
+                               $this->parentNode = $this->node;
+                               $this->node = $this->getToken();
+                               $this->sequenceNo = 0;
                        }
                        else {
                                $this->sequenceNo++;