]> git.mxchange.org Git - hub.git/commitdiff
Used new method from 'core' to inject all array elements from DHT entry as 'config...
authorRoland Haeder <roland@mxchange.org>
Sun, 9 Feb 2014 01:04:22 +0000 (02:04 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 9 Feb 2014 01:04:22 +0000 (02:04 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/dht/class_BaseDht.php

index fecc18cd76c8a0d6f7d03e5416aebc010d528b7b..e676653f497d9bf48ada8efcc210827151f6af58 100644 (file)
@@ -202,8 +202,14 @@ abstract class BaseDht extends BaseHubSystem {
                // Load the announcement descriptor
                $this->publishHelperInstance->loadDescriptorXml($this);
 
-               // Compile all variables
-               $this->publishHelperInstance->getTemplateInstance()->compileConfigInVariables();
+               // "Pop" next entry
+               $entry = $this->getStackerInstance()->popNamed(self::STACKER_NAME_PENDING_PUBLISHING);
+
+               // Some sanity-checks
+               assert(is_array($entry));
+
+               // Inject variables
+               $this->publishHelperInstance->getTemplateInstance()->injectConfigVariables($entry);
 
                // "Publish" the descriptor by sending it to the bootstrap/list nodes
                $this->publishHelperInstance->sendPackage($this);