X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Ffai%2Fclass_faiPackageConfiguration.inc;h=55077c67b7ad9e4497b8f9c9874028cd455a8dc7;hb=9941a7de0eaef18726b3c153693b6e438edebd97;hp=b28155693d171ae279dc2fd114052a75110bcb6e;hpb=7dddfc9610fd1372ce99ca3214df17e764f8f6ad;p=gosa.git diff --git a/plugins/admin/fai/class_faiPackageConfiguration.inc b/plugins/admin/fai/class_faiPackageConfiguration.inc index b28155693..55077c67b 100644 --- a/plugins/admin/fai/class_faiPackageConfiguration.inc +++ b/plugins/admin/fai/class_faiPackageConfiguration.inc @@ -12,8 +12,6 @@ class faiPackageConfiguration extends plugin var $attributes = array(); var $objectclasses = array(); - var $path; - var $Debconf_handle = NULL; var $pkg_config ; var $obj; @@ -22,8 +20,10 @@ class faiPackageConfiguration extends plugin { plugin::plugin ($config, $dn); $this->obj = $obj; - $this->Debconf_handle = new debconf($this->obj, "de"); - $this->Debconf_handle->set_template_directory($this->path); + $this->Debconf_handle = new debconf(); + $this->Debconf_handle->set_template_directory($path); + $this->Debconf_handle->set_package($this->obj); + $this->Debconf_handle->set_language(preg_replace('/_.*$/', '', get_browser_language())); $this->pkg_config = $pkg_config; foreach($this->pkg_config as $var){ @@ -41,7 +41,7 @@ class faiPackageConfiguration extends plugin $display = ""; $smarty->assign("headline", sprintf(_("Debconf information for package '%s'"), $this->obj)); - $this->Debconf_handle -> PostCheck(); + $this->Debconf_handle->PostCheck(); $smarty->assign("Config",$this->Debconf_handle->get_dialog()); @@ -63,9 +63,7 @@ class faiPackageConfiguration extends plugin function save() { - $this->Debconf_handle->set_template_directory($this->path); - - $this->Debconf_handle -> PostCheck(); + $this->Debconf_handle->PostCheck(); $pkgs = $this->Debconf_handle->template; $tmp = array();