From 84591bd5864772173e5d8c0d98f137b85e754f3e Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Dec 2008 11:13:23 +0000 Subject: [PATCH] Removed mail uattrib from setup. -Not used anymore. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13279 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/setup/class_setupStep_Config2.inc | 21 ++------------------- gosa-core/setup/setup_config2.tpl | 2 +- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/gosa-core/setup/class_setupStep_Config2.inc b/gosa-core/setup/class_setupStep_Config2.inc index 9f8397119..7a9a1cb8e 100644 --- a/gosa-core/setup/class_setupStep_Config2.inc +++ b/gosa-core/setup/class_setupStep_Config2.inc @@ -272,11 +272,6 @@ class Step_Config2 extends setup_step $this->samba_settings['samba_sid_active'] = TRUE; $this->samba_settings['samba_rid_active'] = TRUE; } - - /* Reload mail naming attribute */ - if($old_mail != $this->mail && isset($this->mail_methods[$this->mail]['uattrib'])){ - $this->mail_attrib = $this->mail_methods[$this->mail]['uattrib']; - } } $tmp = $this->check(); @@ -315,24 +310,12 @@ class Step_Config2 extends setup_step if(!class_available("mailMethod")){ return(array()); } - - $default_uattrib = ""; - $m_class_vars = get_class_vars("mailMethod"); - if(isset($m_class_vars['uattrib'])){ - $default_uattrib = $m_class_vars['uattrib']; - } - + $methods = array(); foreach($class_mapping as $name => $file){ - if(preg_match("/^mailMethod[a-z]*$/i",$name)){ + if(preg_match("/^mailMethod.*$/i",$name)){ $name = preg_replace("/^mailMethod/","",$name); if(!empty($name)){ $methods[$name]['name'] = $name; - $m_class_vars = get_class_vars("mailMethod".$methods[$name]['name']); - if(isset($m_class_vars['uattrib'])){ - $methods[$name]['uattrib'] = $m_class_vars['uattrib']; - }else{ - $methods[$name]['uattrib'] = $default_uattrib; - } } } } diff --git a/gosa-core/setup/setup_config2.tpl b/gosa-core/setup/setup_config2.tpl index 3ed7daec9..b6d806b31 100644 --- a/gosa-core/setup/setup_config2.tpl +++ b/gosa-core/setup/setup_config2.tpl @@ -200,7 +200,7 @@ -- 2.30.2