From c7aa597cbaa665333ab1d56d14eecd4d06c19cb9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 8 Jun 2013 23:36:59 +0200 Subject: [PATCH] Fixed run="standlone" for PIPs --- .../system/package/PackageInstallationNodeBuilder.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php index 420d541bb9..1fdfc89c16 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php @@ -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++; -- 2.20.1