Code

updated acl update function
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 5 Feb 2007 06:12:25 +0000 (06:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 5 Feb 2007 06:12:25 +0000 (06:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5689 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_plugin.inc

index 1335565b0ab36a2604e1823ec486131aa0e10278..6cbec1b4eddc6cf2a5559cf6b04e21b406a3c27c 100644 (file)
@@ -1561,14 +1561,14 @@ class plugin
       
           /* Check if member match current dn */
           foreach($members as $key => $member){
-            
             $member = base64_decode($member);
             if($member == $old_dn){
               $found = true;
               $members[$key] = base64_encode($new_dn);
             }
           } 
-          
+         
+          /* Create new member string */ 
           $new_members = "";
           foreach($members as $member){
             $new_members .= $member.",";
@@ -1576,21 +1576,24 @@ class plugin
           $new_members = preg_replace("/,$/","",$new_members);
           $acl_parts[2] = $new_members;
         
+          /* Reconstruckt acl entry */
           $acl_str  ="";
           foreach($acl_parts as $t){
-            $acl_str .= $t.":";
+           $acl_str .= $t.":";
           }
           $acl_str = preg_replace("/:$/","",$acl_str);
-       
-          $acls[] = $acl_str; 
        }
 
        /* Acls for this object must be adjusted */
        if($found){
 
           if($output_changes){
-            echo "<font color='green'>Changing ACL dn from : <br>&nbsp;-&nbsp;<b>&nbsp;to".$old_dn."</b><br>&nbsp;-&nbsp;<b>".$new_dn."</b></font><br>";
+            echo "<font color='green'>".
+                  _("Changing ACL dn")."&nbsp;:&nbsp;<br>&nbsp;-"._("from")."&nbsp;<b>&nbsp;".
+                  $old_dn.
+                  "</b><br>&nbsp;-"._("to")."&nbsp;<b>".
+                  $new_dn.
+                  "</b></font><br>";
           }
           $update[$attrs['dn']] =array();
           foreach($acls as $acl){