Index: openacs-4/packages/xowiki/tcl/xowiki-portlet-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/Attic/xowiki-portlet-procs.tcl,v diff -u -r1.35 -r1.36 --- openacs-4/packages/xowiki/tcl/xowiki-portlet-procs.tcl 27 Mar 2007 12:11:29 -0000 1.35 +++ openacs-4/packages/xowiki/tcl/xowiki-portlet-procs.tcl 28 Mar 2007 07:46:55 -0000 1.36 @@ -1321,10 +1321,10 @@ collab-graph instproc render {} { my get_parameters - if {![info exists user_id]} {set user_id [::xo::cc user_id]} - if {$show_anonymous ne "all" && $user_id eq 0} { + if {$show_anonymous ne "all" && [::xo::cc user_id] eq 0} { return "You must login to see the [namespace tail [self class]]" } + if {![info exists user_id]} {set user_id [::xo::cc user_id]} set folder_id [$package_id folder_id] db_foreach get_collaborators { @@ -1350,7 +1350,7 @@ incr activities($creation_user) $count } - set result "
Collaboration Graph for [::xo::get_user_name $user_id] " + set result "
Collaboration Graph for [::xo::get_user_name $user_id] in this wiki" if {[array size i] < 1} { append result "
No collaborations found
" } else { @@ -1403,9 +1403,8 @@ activity-graph instproc render {} { my get_parameters - if {![info exists user_id]} {set user_id [::xo::cc user_id]} - if {$show_anonymous ne "all" && $user_id ne 0} { - return "You must loging to see the [namespace tail [self class]]" + if {$show_anonymous ne "all" && [::xo::cc user_id] eq 0} { + return "You must login to see the [namespace tail [self class]]" } set folder_id [$package_id folder_id] @@ -1446,7 +1445,7 @@ append result "Last $total activities were done by user " \ "[::xo::get_user_name $user_id]." } else { - append result "
Collaborations in last $total activities by [array size user] Users
" + append result "Collaborations in last $total activities by [array size user] Users in this wiki
" foreach x [array names i] { foreach {u1 c1} $i($x) {