summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b8f8bb7)
raw | patch | inline | side by side (parent: b8f8bb7)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Nov 2005 14:29:24 +0000 (14:29 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Nov 2005 14:29:24 +0000 (14:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2049 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_debconfTemplate.inc | patch | blob | history | |
plugins/admin/fai/class_faiPackage.inc | patch | blob | history | |
plugins/admin/fai/class_faiPackageConfiguration.inc | patch | blob | history |
index 001f562739a9529e61a4435a9e4fad6307f8bc63..76ee781760dd858ef372020403c9a787587550c1 100644 (file)
var $package= "";
var $language= "";
var $has_template= FALSE;
- var $template_directory= "/var/lib/dpkg/info";
+ var $template_directory= "";
var $template= array();
index 6eb8a52c5a26c06da0e4e8f31f45c74e9876bc24..53d6b3d8790aa0b21b816c8fdea154a622eef09f 100644 (file)
/* Configuration dialog open*/
if((isset($_POST['Conpkg']))&&(isset($_POST['usedPackages']))&&(!empty($_POST['usedPackages']))){
- $path = "/etc/gosa/fai/".preg_replace("#^[^/]+//([^/]+).*$#","\\1",$this->FAIdebianMirror)."/".$this->FAIdebianRelease."/".$sec;
+ $path = "/etc/gosa/fai/".preg_replace("#^[^/]+//([^/]+).*$#","\\1",$this->FAIdebianMirror)."/".$this->FAIdebianRelease."/debconf.d";
$pkg_config = array();
if(isset($this->ConfiguredPackages[$_POST['usedPackages']])){
$pkg_config = $this->ConfiguredPackages[$_POST['usedPackages']];
diff --git a/plugins/admin/fai/class_faiPackageConfiguration.inc b/plugins/admin/fai/class_faiPackageConfiguration.inc
index b28155693d171ae279dc2fd114052a75110bcb6e..55077c67b7ad9e4497b8f9c9874028cd455a8dc7 100644 (file)
var $attributes = array();
var $objectclasses = array();
- var $path;
-
var $Debconf_handle = NULL;
var $pkg_config ;
var $obj;
{
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){
$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());
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();