From 718cb91f531478a11c72327b14edc2f294514bdf Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 5 Sep 2007 07:45:44 +0000 Subject: [PATCH] Cut length of displayed base in "Append base to admin dn" to 20 characters git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7223 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 b2c467ef6..9b5f670ea 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 b54c7a674..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