Code

Cleaned up Package Configuration Class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Mar 2008 08:54:37 +0000 (08:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 27 Mar 2008 08:54:37 +0000 (08:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10012 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc

index 2317b31d59d9dfa5e4f853aeab5a93531f033c82..518399797c877f4486d0f5baa1ae2e78641b1be5 100644 (file)
@@ -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'];