From: hickert Date: Thu, 27 Mar 2008 08:54:37 +0000 (+0000) Subject: Cleaned up Package Configuration Class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f4c76a01f809a3b0a7660896aba8b9ddb60c9cf;p=gosa.git Cleaned up Package Configuration Class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10012 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc b/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc index 2317b31d5..518399797 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc @@ -40,18 +40,12 @@ class faiPackageConfiguration extends plugin /* Call parent execute */ plugin::execute(); - /* Fill templating stuff */ $smarty = get_smarty(); - $display = ""; $smarty->assign("headline", sprintf(_("Debconf information for package '%s'"), $this->obj)); - $this->Debconf_handle->PostCheck(); - $smarty->assign("Config",$this->Debconf_handle->get_dialog()); - - $display.= $smarty->fetch(get_template_path('faiPackageConfiguration.tpl', TRUE)); - return($display); + return($smarty->fetch(get_template_path('faiPackageConfiguration.tpl', TRUE))); } /* Save data to object */ @@ -64,7 +58,6 @@ class faiPackageConfiguration extends plugin { /* Call common method to give check the hook */ $message= plugin::check(); - return ($message); } @@ -72,7 +65,6 @@ class faiPackageConfiguration extends plugin { $this->Debconf_handle->PostCheck(); $pkgs = $this->Debconf_handle->template; - $tmp = array(); foreach($pkgs as $pkg){ $tmp[$this->obj][$pkg['Name']]['Value']= $pkg['Default'];