From: hickert Date: Wed, 18 May 2011 14:00:56 +0000 (+0000) Subject: Added comment X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5dc7ec33a3e78a4cdec17970a3a02588fbdfdac3;p=gosa.git Added comment git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20862 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc index 517485065..57a369c31 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -102,11 +102,14 @@ class newConfigManagement extends plugin $map['%INSTALLATION_METHODS'] = array('puppet' => 'puppet'); $map['%TEMPLATE_METHODS'] = array('preseed' => 'preseed'); $this->itemConfig = $this->__fillPlaceholder($this->itemConfig, $map); - return(TRUE); } + /*! \brief Fill in replacements in the itemConfig + * Some values are dynamic and cannot be hardcoded, a placeholder is + * used in this case in the deinition file root.json. + */ function __fillPlaceholder($data, $placeholder) { foreach($data as $name => $sData){ @@ -114,10 +117,8 @@ class newConfigManagement extends plugin $data[$name] = $this->__fillPlaceholder($data[$name], $placeholder); }elseif(is_string($sData) && isset($placeholder[$sData])){ $data[$name] = &$placeholder[$sData]; - echo "Jep {$name}"; } } - return($data); }