From 92e404034ce30126d7e08bc781a1db6f37c00e0e Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Aug 2005 06:00:14 +0000 Subject: [PATCH] fixed replacement strings git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1103 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofon/phoneaccount/class_phoneAccount.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/gofon/phoneaccount/class_phoneAccount.inc b/plugins/gofon/phoneaccount/class_phoneAccount.inc index 13d1b3926..c55d63bd0 100644 --- a/plugins/gofon/phoneaccount/class_phoneAccount.inc +++ b/plugins/gofon/phoneaccount/class_phoneAccount.inc @@ -524,7 +524,7 @@ class phoneAccount extends plugin $macrotab=""; }else{ - $macrotab =""; + $macrotab ="
"; /* for every single parameter-> display textfile,combo, or true false switch*/ @@ -540,12 +540,12 @@ class phoneAccount extends plugin $string = $paras['default']; - $string=str_replace("%uid",$this->uid,$string); - $string=str_replace("%cn",$this->cn,$string); + $string=preg_replace("/%uid/i",$this->uid,$string); + $string=preg_replace("/%cn/i",$this->cn,$string); for($i = 0 ; $i < 10; $i++){ if(isset($tmp[$i])){ - $string = preg_replace("/%telephoneNumber_".($i+1)."/",$tmp[$i],$string); + $string = preg_replace("/%telephoneNumber_".($i+1)."/i",$tmp[$i],$string); } } @@ -590,8 +590,8 @@ class phoneAccount extends plugin break; case "string": - $str="acl, "goFonMacro").">"; - $macrotab.= "
$name$str"; + $str="acl, "goFonMacro")." style='width:340px;'>"; + $macrotab.= "$name$str"; break; } -- 2.30.2