Index: openacs-4/packages/logger/logger.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/logger/logger.info,v diff -u -r1.16 -r1.17 --- openacs-4/packages/logger/logger.info 14 Oct 2005 22:41:15 -0000 1.16 +++ openacs-4/packages/logger/logger.info 10 May 2006 18:53:01 -0000 1.17 @@ -7,7 +7,7 @@ f f - + Alex Kroman Peter Marklund Lars Pind @@ -19,8 +19,8 @@ Logger can be optionally integrated with project-manager, for logging of time against projects and tasks. 1 - - + + Index: openacs-4/packages/logger/lib/entries.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/logger/lib/entries.tcl,v diff -u -r1.19 -r1.20 --- openacs-4/packages/logger/lib/entries.tcl 14 Dec 2005 22:04:19 -0000 1.19 +++ openacs-4/packages/logger/lib/entries.tcl 10 May 2006 18:53:01 -0000 1.20 @@ -60,6 +60,8 @@ set filters_p 1 } +set dotlrn_installed_p [apm_package_installed_p dotlrn] + if { ![exists_and_not_null format] } { set format "normal" } @@ -101,6 +103,7 @@ # using logger with categories and without set package_id [ad_conn package_id] + set current_user_id [ad_conn user_id] set admin_p [permission::permission_p -object_id $package_id -privilege admin] @@ -244,8 +247,11 @@ # For the description filter we get the value of the parameter -set community_id [dotlrn_community::get_community_id] -if { ![empty_string_p $community_id] } { +if {$dotlrn_installed_p} { + set community_id [dotlrn_community::get_community_id] +} + +if { [exists_and_not_null community_id] } { set logger_package_id [dotlrn_community::get_package_id_from_package_key \ -package_key "logger" \ -community_id $community_id]