Code

Fixed logging
[gosa.git] / plugins / admin / systems / class_goFonServer.inc
index 37f4b8ac9caa09c09e1ed6239ba1458fb634142b..7457444c8e796beb03b2eaed7a447a50903adaaa 100644 (file)
@@ -26,6 +26,7 @@ class goFonServer extends goService{
   var $goFonAdmin         = "";
   var $goFonAreaCode      = "";
   var $goFonCountryCode   = "";
+  var $view_logged  =FALSE;
    
  
   function goFonServer($config,$dn)
@@ -37,6 +38,11 @@ class goFonServer extends goService{
 
   function execute()
   { 
+    if($this->is_account && !$this->view_logged){
+      $this->view_logged = TRUE;
+      @log::log("view","server/".get_class($this),$this->dn);
+    }
+
     $smarty = get_smarty(); 
     foreach($this->attributes as $attr){
       $smarty->assign($attr,$this->$attr);