Index: openacs-4/packages/lors-central/www/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/lors-central/www/index.vuh,v diff -u -r1.1 -r1.1.2.1 --- openacs-4/packages/lors-central/www/index.vuh 17 May 2005 16:21:19 -0000 1.1 +++ openacs-4/packages/lors-central/www/index.vuh 24 Nov 2005 17:51:23 -0000 1.1.2.1 @@ -36,6 +36,12 @@ set href [lors_central::get_href -ims_item_id $ims_item_id] set path_list [split $href "/"] + +if { [llength $path_list] == 1 } { + # There is no subfolder, so path_list is the url_name + set subfolder_name "" + set url_name $path_list +} else { set char [string range $href 0 0] if { [string equal $char "/"] } { set subfolder_name [lindex $path_list 1] @@ -44,6 +50,7 @@ set subfolder_name [lindex $path_list 0] set url_name [lindex $path_list 1] } +} # Get the folder_id from the href and figure it out if we have to move another # folder down