From: Alexander Ebert Date: Sat, 8 Jun 2013 21:36:59 +0000 (+0200) Subject: Fixed run="standlone" for PIPs X-Git-Tag: 2.0.0_Beta_4~96 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c7aa597cbaa665333ab1d56d14eecd4d06c19cb9;p=GitHub%2FWoltLab%2FWCF.git Fixed run="standlone" for PIPs --- 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++;