From fe3e64282b7febb3e204903876356a9b04f3c528 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Sep 2007 07:44:18 +0000 Subject: [PATCH] Trimed length of displayed base in "Appended base to admin dn"
tag to 20 characters. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7222 594d385d-05f5-0310-b6e9-bd551577e9d8 --- setup/class_setupStep_Ldap.inc | 6 ++++++ setup/setup_ldap.tpl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/setup/class_setupStep_Ldap.inc b/setup/class_setupStep_Ldap.inc index 8bd9076e7..229941f77 100644 --- a/setup/class_setupStep_Ldap.inc +++ b/setup/class_setupStep_Ldap.inc @@ -81,6 +81,12 @@ class Step_Ldap extends setup_step $smarty->assign("resolved_users_count",count($tmp)); $smarty->assign("resolve_filter",$this->resolve_filter); } + + $base_to_append = $this->base; + if(strlen($base_to_append) > 20){ + $base_to_append = substr($base_to_append,0,17)."..."; + } + $smarty->assign("base_to_append",$base_to_append); return($smarty -> fetch (get_template_path("../setup/setup_ldap.tpl"))); } diff --git a/setup/setup_ldap.tpl b/setup/setup_ldap.tpl index 4ac92892a..b1ef46ee1 100644 --- a/setup/setup_ldap.tpl +++ b/setup/setup_ldap.tpl @@ -74,7 +74,7 @@
- {if $append_base_to_admin_dn},{$base}{/if} + {if $append_base_to_admin_dn},{$base_to_append}{/if}
-- 2.30.2