summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ad5250)
raw | patch | inline | side by side (parent: 2ad5250)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 May 2007 06:10:25 +0000 (06:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 22 May 2007 06:10:25 +0000 (06:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6429 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/applications/class_applicationGeneric.inc | patch | blob | history | |
plugins/admin/departments/class_departmentGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc
index 5ecab3a94495d85905ba0af1a94ea12f9717e4ca..3b744aa1bd04ffccbc10b61515c5f9fdb16a8a28 100644 (file)
var $gosaApplicationIcon= "";
var $gotoLogonScript ="";
var $iconData;
+ var $view_logged = FALSE;
/* Headpage attributes */
var $last_sorting= "invalid";
$this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn);
}
}
-
- if($this->is_account && $dn != "new"){
- @log::log("view","application/".get_class($this),$this->dn);
- }
}
/* Call parent execute */
plugin::execute();
+ /* Log view */
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","application/".get_class($this),$this->dn);
+ }
+
$smarty= get_smarty();
$tmp = $this->plInfo();
diff --git a/plugins/admin/departments/class_departmentGeneric.inc b/plugins/admin/departments/class_departmentGeneric.inc
index 9f96a555aeb09652d543a93690cac61b3d7d7728..2b637e06e938cf90deb3151edfae60222a0b31ea 100644 (file)
var $orig_dn= "";
var $is_administrational_unit= false;
var $gosaUnitTag= "";
-
+ var $view_logged = FALSE;
var $rec_dst=false; // Destination for recursive move
var $rec_src=false; // Source for recursive move
var $rec_cpy=false; // Is recursive move requested ?
$this->is_administrational_unit= true;
$this->initially_was_tagged = true;
}
-
- if($this->is_account && $dn != "new"){
- @log::log("view","department/".get_class($this),$this->dn);
- }
}
function execute()
/* Call parent execute */
plugin::execute();
+ /* Log view */
+ if($this->is_account && !$this->view_logged){
+ $this->view_logged = TRUE;
+ @log::log("view","department/".get_class($this),$this->dn);
+ }
+
/* Reload departments */
$this->config->get_departments($this->dn);
$this->config->make_idepartments();