Index: openacs-4/packages/chat/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/chat/www/index.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/chat/www/index.tcl 7 Jun 2007 09:14:25 -0000 1.6 +++ openacs-4/packages/chat/www/index.tcl 24 Jun 2007 15:21:19 -0000 1.7 @@ -31,7 +31,11 @@ } lappend actions "#chat.Search_a_room#" room-search?package_id=[ad_conn package_id] "#chat.Search_a_room#" -set community_id [dotlrn_community::get_community_id] +if {[info procs dotlrn_community::get_community_id] eq ""} { + set community_id "" +} else { + set community_id [dotlrn_community::get_community_id] +} if { $community_id eq "" } { set list 0 @@ -115,35 +119,35 @@ -row_pretty_plural [_ chat.rooms] \ -elements { open { - label "#chat-portlet.open_room#" + label "#chat.open_room#" html { align "center" } display_template {
- +
- +
} } private { - label "#chat-portlet.private_room#" + label "#chat.private_room#" html { align "center" } display_template {
- +
- +
} @@ -162,7 +166,7 @@ } } community { - label "#chat-portlet.community_class#" + label "#chat.community_class#" html { align "center"} display_template { @@ -171,18 +175,18 @@ } } rss { - label "#chat-portlet.rss#" + label "#chat.rss#" html { align "center" } display_template {
#rss-support.Syndication_Feed# Subscribe via RSS

- #chat-portlet.no_rss# + #chat.no_rss#
- #chat-portlet.no_rss# + #chat.no_rss# } } @@ -225,35 +229,35 @@ -row_pretty_plural [_ chat.rooms] \ -elements { open { - label "#chat-portlet.open_room#" + label "#chat.open_room#" html { align "center" } display_template {
- +
- +
} } private { - label "#chat-portlet.private_room#" + label "#chat.private_room#" html { align "center" } display_template {
- +
- +
} @@ -272,7 +276,7 @@ } } community { - label "#chat-portlet.community_class#" + label "#chat.community_class#" html { align "center"} display_template { @@ -281,18 +285,18 @@ } } rss { - label "#chat-portlet.rss#" + label "#chat.rss#" html { align "center" } display_template {
#rss-support.Syndication_Feed# Subscribe via RSS

- #chat-portlet.no_rss# + #chat.no_rss#
- #chat-portlet.no_rss# + #chat.no_rss# } }