Code

Removed duplicated post call
[gosa.git] / plugins / admin / systems / class_terminalStartup.inc
index d84b8c229b2de249f989d8a128ec4b3681173574..dfae3014777783a594ef3e81bd8ba5dee3f04ce4 100644 (file)
@@ -144,6 +144,10 @@ class termstartup extends plugin
         }
       }
     }
+
+    if($this->is_account){
+      @log::log("view","terminal/".get_class($this),$this->dn);
+    }
   }
 
   function execute()
@@ -289,6 +293,7 @@ class termstartup extends plugin
   {
     if($this->acl_is_removeable()){
       $this->handle_post_events("remove");
+      @log::log("remove","terminal/".get_class($this),$this->dn,array_keys($this->attrs));
     }
   }
 
@@ -398,6 +403,8 @@ class termstartup extends plugin
     $this->cleanup();
     $ldap->modify ($this->attrs); 
 
+    @log::log("modify","terminal/".get_class($this),$this->dn,array_keys($this->attrs),$ldap->get_error());
+
     show_ldap_error($ldap->get_error(), sprintf(_("Saving of system terminal/startup with dn '%s' failed."),$this->dn));
     $this->handle_post_events("modify");
   }