Index: openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl,v diff -u -r1.157 -r1.158 --- openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 17 Aug 2008 01:21:56 -0000 1.157 +++ openacs-4/packages/xowiki/tcl/xowiki-www-procs.tcl 27 Aug 2008 09:48:55 -0000 1.158 @@ -277,9 +277,13 @@ # setting up folder id for file selector (use community folder if available) # set fs_folder_id "" - if {[info commands ::dotlrn_fs::get_community_shared_folder] ne ""} { - set fs_folder_id [::dotlrn_fs::get_community_shared_folder \ - -community_id [::dotlrn_community::get_community_id]] + if {[info commands ::dotlrn_fs::get_community_shared_folder]} { + # ... we have dotlrn installed + set cid [::dotlrn_community::get_community_id] + if {$cid ne ""} { + # ... we are inside of a community, use the community folder + set fs_folder_id [::dotlrn_fs::get_community_shared_folder -community_id $cid] + } } # the following line is like [$package_id url], but works as well with renamed objects