Code

Switched log call
[gosa.git] / plugins / admin / systems / class_goLdapServer.inc
index 8229c32a689b7c4de20e19c52fdc5414f41ff1d1..7e35f52e3af4d0cbc4479bfbf56b69f30d9f6746 100644 (file)
@@ -21,16 +21,23 @@ class goLdapServer extends goService{
   var $cn                  = "";
   var $goLdapServerStatus  = "";
   var $goLdapBase          = ""; 
+  var $view_logged  =FALSE;
 
   function goLdapServer($config,$dn)
   {
-    plugin::plugin($config,$dn);
+    goService::goService($config,$dn);
     $this->DisplayName = _("LDAP service");
   }
 
 
   function execute()
   { 
+
+    if($this->is_account && !$this->view_logged){
+      $this->view_logged = TRUE;
+      new log("view","server/".get_class($this),$this->dn);
+    }
+
     $smarty = get_smarty(); 
     foreach($this->attributes as $attr){
       $smarty->assign($attr,$this->$attr);
@@ -76,10 +83,10 @@ class goLdapServer extends goService{
   {
     return (array(
           "plShortName"   => _("Ldap"),
-          "plDescription" => _("Ldap service"),
+          "plDescription" => _("Ldap")." ("._("Services").")",
           "plSelfModify"  => FALSE,
           "plDepends"     => array(),
-          "plPriority"    => 0,
+          "plPriority"    => 96,
           "plSection"     => array("administration"),
           "plCategory"    => array("server"),