Index: openacs-4/packages/file-storage/www/folder-chunk.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/folder-chunk.tcl,v diff -u -r1.61.2.12 -r1.61.2.13 --- openacs-4/packages/file-storage/www/folder-chunk.tcl 9 Sep 2021 14:03:58 -0000 1.61.2.12 +++ openacs-4/packages/file-storage/www/folder-chunk.tcl 13 Oct 2022 10:15:31 -0000 1.61.2.13 @@ -185,7 +185,8 @@ categories [list label [_ file-storage.Categories] display_col "categories;noquote"] } -if {[apm_package_installed_p views]} { +set views_installed_p [expr {[namespace which ::views::get] ne ""}] +if { $views_installed_p } { lappend elements views [list label "Views"] } @@ -354,7 +355,7 @@ } set views "" - if {[apm_package_installed_p views]} { + if { $views_installed_p } { array set views_arr [views::get -object_id $object_id] if {$views_arr(views_count) ne ""} { set views " $views_arr(views_count) / $views_arr(unique_views)"