From 7434cbe31b1e89fd305cf2514197661437506d86 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sun, 9 Feb 2014 02:04:22 +0100 Subject: [PATCH] Used new method from 'core' to inject all array elements from DHT entry as 'config' variables. This shall make them available to the template engine. Signed-off-by: Roland Haeder --- application/hub/main/dht/class_BaseDht.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/application/hub/main/dht/class_BaseDht.php b/application/hub/main/dht/class_BaseDht.php index fecc18cd7..e676653f4 100644 --- a/application/hub/main/dht/class_BaseDht.php +++ b/application/hub/main/dht/class_BaseDht.php @@ -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); -- 2.39.5